sk398
Fork of mbed-rtos by
Diff: rtos/Thread.cpp
- Revision:
- 85:ef0a22cdf839
- Parent:
- 84:143955ffb790
- Child:
- 90:21b438192b0f
diff -r 143955ffb790 -r ef0a22cdf839 rtos/Thread.cpp --- 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 } }