mirror of https://github.com/ARMmbed/mbed-os.git
Merge branch 'Mutex_trylock_adding_missing_count_parameter' of git://github.com/dmaziec1/mbed-os into dev_rollup
commit
cb6efc0e45
|
@ -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