aboutsummaryrefslogtreecommitdiffstats
path: root/common/rwlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/rwlock.c')
-rw-r--r--common/rwlock.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/rwlock.c b/common/rwlock.c
index d7a813df..cfa3aee4 100644
--- a/common/rwlock.c
+++ b/common/rwlock.c
@@ -21,9 +21,9 @@ void RWLockInit(RWLock *lock)
{
InitRef(&lock->read_count, 0);
InitRef(&lock->write_count, 0);
- ATOMIC_STORE_UNSAFE(&lock->read_lock, false);
- ATOMIC_STORE_UNSAFE(&lock->read_entry_lock, false);
- ATOMIC_STORE_UNSAFE(&lock->write_lock, false);
+ ATOMIC_INIT(&lock->read_lock, false);
+ ATOMIC_INIT(&lock->read_entry_lock, false);
+ ATOMIC_INIT(&lock->write_lock, false);
}
void ReadLock(RWLock *lock)