diff options
author | Chris Robinson <[email protected]> | 2014-08-03 00:26:21 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-08-03 00:26:21 -0700 |
commit | f5194a9d8e9ce58b0c1a082686ccf180ea66f8ad (patch) | |
tree | 4af7b454465d607a9465e849b6b75e02e84aef0e /common/rwlock.c | |
parent | 659b3407162e2354c89ebdc9858c9a9fb39ad3d3 (diff) |
Use an ATOMIC_INIT macro instead of ATOMIC_LOAD_UNSAFE
Diffstat (limited to 'common/rwlock.c')
-rw-r--r-- | common/rwlock.c | 6 |
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) |