mirror of https://github.com/ARMmbed/mbed-os.git
Add a mutex to the thread object to protect its internal data. Prevent making OS calls with a thread ID that has been terminated. This thread ID can be reused by another thread, leading to undefined behavior if it is used after termination. Update the function Thread::join to use a semaphore to determine when the thread finishes. This both avoids polling and prevents a freed TCB from being accessed. |
||
---|---|---|
.. | ||
rtos | ||
rtx | ||
mbed_lib.json |