mirror of https://github.com/ARMmbed/mbed-os.git
Update the Thread::start function to gracefully handle the failed creation of a thread when there are no TCBs left. This patch does the following: 1. Set memory handles to NULL after free to prevent double free 2. Post to the release semaphore so anything that tries to join this thread will join immediately 3. Remove dead return path since the new operator should never return NULL (it should trap instead) |
||
---|---|---|
.. | ||
Mail.h | ||
MemoryPool.h | ||
Mutex.cpp | ||
Mutex.h | ||
Queue.h | ||
RtosTimer.cpp | ||
RtosTimer.h | ||
Semaphore.cpp | ||
Semaphore.h | ||
Thread.cpp | ||
Thread.h | ||
rtos.h | ||
rtos_idle.c | ||
rtos_idle.h |