Fork of the mbed-rtos library by mbed.

Dependents:   internet_clock 4180_Final_Project 4180_Final_Project_WaveProblems 4180_Final_Project ... more

Fork of mbed-rtos by mbed official

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
 }
 
 }