mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 10:32: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;
|
||||
if (got_lock) {
|
||||
r->read_waiter_count++;
|
||||
r->read_lock_count++;
|
||||
}
|
||||
|
||||
mutexUnlock(&r->mutex);
|
||||
|
Loading…
Reference in New Issue
Block a user