Skip to content

Commit cb6efc0

Browse files
committed
Merge branch 'Mutex_trylock_adding_missing_count_parameter' of git://github.com/dmaziec1/mbed-os into dev_rollup
2 parents 7eb97be + b5826fc commit cb6efc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rtos/source/Mutex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ bool Mutex::trylock_for(uint32_t millisec)
9797
{
9898
osStatus status = osMutexAcquire(_id, millisec);
9999
if (status == osOK) {
100+
_count++;
100101
return true;
101102
}
102103

0 commit comments

Comments
 (0)