Official mbed Real Time Operating System based on the RTX implementation of the CMSIS-RTOS API open standard.
Dependents: denki-yohou_b TestY201 Network-RTOS NTPClient_HelloWorld ... more
Deprecated
This is the mbed 2 rtos library. mbed OS 5 integrates the mbed library with mbed-rtos. With this, we have provided thread safety for all mbed APIs. If you'd like to learn about using mbed OS 5, please see the docs.
Diff: rtos/Thread.h
- Revision:
- 107:bdd541595fc5
- Parent:
- 84:143955ffb790
- Child:
- 118:6635230e06ba
diff -r dfc27975e193 -r bdd541595fc5 rtos/Thread.h
--- a/rtos/Thread.h Wed Mar 02 11:30:15 2016 +0000
+++ b/rtos/Thread.h Tue Mar 15 09:00:39 2016 +0000
@@ -131,6 +131,11 @@
@return thread ID for reference by other functions or NULL in case of error.
*/
static osThreadId gettid();
+
+ /** Attach a function to be called by the RTOS idle task
+ @param fptr pointer to the function to be called
+ */
+ static void attach_idle_hook(void (*fptr)(void));
virtual ~Thread();
mbed official




