Fix semaphoreTryWait

This commit is contained in:
Jakob Dietrich 2018-08-03 22:07:28 +02:00 committed by fincs
parent 93dabfab3f
commit 8e19bb5b0d

View File

@ -33,5 +33,6 @@ bool semaphoreTryWait(Semaphore *s) {
s->count--;
success = true;
}
mutexUnlock(&s->mutex);
return success;
}