Skip to content

Commit b5826fc

Browse files
author
Dominika Maziec
committed
Mutex: _count incrementation brought back
1 parent 7e179f5 commit b5826fc

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)