mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 04:52:39 +02:00
Condvar fix
This commit is contained in:
parent
14263ddd78
commit
842ce50c2f
@ -13,7 +13,7 @@ void condvarInit(CondVar* c, Mutex* m) {
|
||||
Result condvarWaitTimeout(CondVar* c, u64 timeout) {
|
||||
Result rc;
|
||||
|
||||
rc = svcWaitProcessWideKeyAtomic(&c->tag, (u32*) c->mutex, getThreadVars()->handle, timeout);
|
||||
rc = svcWaitProcessWideKeyAtomic((u32*) c->mutex, &c->tag, getThreadVars()->handle, timeout);
|
||||
|
||||
// On timeout, we need to acquire it manually.
|
||||
if (rc == 0xEA01)
|
||||
|
Loading…
Reference in New Issue
Block a user