mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: platform/mbed_poll.cpp
- Revision:
- 189:f392fc9709a3
- Parent:
- 188:bcfe06ba3d64
--- a/platform/mbed_poll.cpp Thu Nov 08 11:46:34 2018 +0000 +++ b/platform/mbed_poll.cpp Wed Feb 20 22:31:08 2019 +0000 @@ -1,5 +1,6 @@ /* mbed Microcontroller Library * Copyright (c) 2017 ARM Limited + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +18,7 @@ #include "FileHandle.h" #if MBED_CONF_RTOS_PRESENT #include "rtos/Kernel.h" -#include "rtos/Thread.h" +#include "rtos/ThisThread.h" using namespace rtos; #else #include "drivers/Timer.h" @@ -83,7 +84,7 @@ #ifdef MBED_CONF_RTOS_PRESENT // TODO - proper blocking // wait for condition variable, wait queue whatever here - rtos::Thread::wait(1); + rtos::ThisThread::sleep_for(1); #endif } return count;