fix incorrect increment

This commit is contained in:
Michael Scire 2019-12-03 09:39:02 -08:00
parent 0499ae3688
commit 41733c0e44

View File

@ -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);