mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
fix incorrect increment
This commit is contained in:
parent
0499ae3688
commit
41733c0e44
@ -54,7 +54,7 @@ bool rwlockTryReadLock(RwLock* r) {
|
|||||||
|
|
||||||
const bool got_lock = r->write_waiter_count == 0;
|
const bool got_lock = r->write_waiter_count == 0;
|
||||||
if (got_lock) {
|
if (got_lock) {
|
||||||
r->read_waiter_count++;
|
r->read_lock_count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
mutexUnlock(&r->mutex);
|
mutexUnlock(&r->mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user