diff options
Diffstat (limited to 'common/rwlock.c')
-rw-r--r-- | common/rwlock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/rwlock.c b/common/rwlock.c index b967db0a..ff7aa418 100644 --- a/common/rwlock.c +++ b/common/rwlock.c @@ -24,8 +24,8 @@ static void Unlock(volatile int *l) void RWLockInit(RWLock *lock) { - lock->read_count = 0; - lock->write_count = 0; + InitRef(&lock->read_count, 0); + InitRef(&lock->write_count, 0); lock->read_lock = false; lock->read_entry_lock = false; lock->write_lock = false; |