mbed-os/rtos/source
Kevin Bracey b52a3b3120 Mutex::unlock - decrement _count inside lock
`Mutex::unlock` was decrementing the `_count` member after releasing
the mutex, which meant it was unprotected, exposing a race that
could corrupt the count.

This could lead to an assert in `ConditionVariable::wait`, which
checks that the mutex count is one.
2020-05-15 19:10:53 +03:00
..
TARGET_CORTEX Correct core RTOS sleep routine timing 2020-05-07 11:43:01 +03:00
ConditionVariable.cpp Add Chrono and predicate support to ConditionVariable 2020-04-27 10:19:08 +03:00
EventFlags.cpp Add Chrono support to EventFlags 2020-04-27 10:19:08 +03:00
Kernel.cpp Add Chrono support to Kernel and SysTimer 2020-04-27 10:19:08 +03:00
Mutex.cpp Mutex::unlock - decrement _count inside lock 2020-05-15 19:10:53 +03:00
Semaphore.cpp Add Chrono support to Semaphore 2020-04-27 10:19:08 +03:00
ThisThread.cpp Add Chrono support to ThisThread 2020-04-27 10:19:08 +03:00
Thread.cpp rtos: fix SPDX identifiers 2020-02-21 07:00:57 +00:00
rtos_handlers.h rtos: fix SPDX identifiers 2020-02-21 07:00:57 +00:00
rtos_idle.h rtos: fix SPDX identifiers 2020-02-21 07:00:57 +00:00