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.

Revision:
85:ef0a22cdf839
Parent:
84:143955ffb790
Child:
90:21b438192b0f
--- a/rtos/Thread.cpp	Wed Jun 17 10:00:10 2015 +0100
+++ b/rtos/Thread.cpp	Wed Jun 17 11:15:10 2015 +0100
@@ -31,7 +31,6 @@
     _thread_def.pthread = task;
     _thread_def.tpriority = priority;
     _thread_def.stacksize = stack_size;
-#ifndef __MBED_CMSIS_RTOS_CA9
     if (stack_pointer != NULL) {
         _thread_def.stack_pointer = (uint32_t*)stack_pointer;
         _dynamic_stack = false;
@@ -47,7 +46,6 @@
         _thread_def.stack_pointer[i] = 0xE25A2EA5;
     }
 #endif
-#endif
     _tid = osThreadCreate(&_thread_def, argument);
 }
 
@@ -136,11 +134,9 @@
 
 Thread::~Thread() {
     terminate();
-#ifndef __MBED_CMSIS_RTOS_CA9
     if (_dynamic_stack) {
         delete[] (_thread_def.stack_pointer);
     }
-#endif
 }
 
 }