mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Fix semaphoreTryWait
This commit is contained in:
parent
93dabfab3f
commit
8e19bb5b0d
@ -33,5 +33,6 @@ bool semaphoreTryWait(Semaphore *s) {
|
|||||||
s->count--;
|
s->count--;
|
||||||
success = true;
|
success = true;
|
||||||
}
|
}
|
||||||
|
mutexUnlock(&s->mutex);
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user