From f5194a9d8e9ce58b0c1a082686ccf180ea66f8ad Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 3 Aug 2014 00:26:21 -0700 Subject: Use an ATOMIC_INIT macro instead of ATOMIC_LOAD_UNSAFE --- common/rwlock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/rwlock.c') 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) -- cgit v1.2.3