mirror of https://github.com/ARMmbed/mbed-os.git
Mutex: _count incrementation brought back
parent
7e179f5beb
commit
b5826fc63e
|
|
@ -97,6 +97,7 @@ bool Mutex::trylock_for(uint32_t millisec)
|
|||
{
|
||||
osStatus status = osMutexAcquire(_id, millisec);
|
||||
if (status == osOK) {
|
||||
_count++;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue