diff options
author | Chris Robinson <[email protected]> | 2014-07-22 18:18:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-07-22 18:18:14 -0700 |
commit | a3b1d4a5e20fade26bdfe2b964d8d363aac2acc3 (patch) | |
tree | c47dd10f78cc6fee6f595f1108e7a666d8fb3614 /include/rwlock.h | |
parent | 5a339a2a5b12545c105a2a3dcfb1d8e466b0381f (diff) |
Implement RefCount as a generic atomic type
Diffstat (limited to 'include/rwlock.h')
-rw-r--r-- | include/rwlock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/rwlock.h b/include/rwlock.h index 03482515..f2a8feab 100644 --- a/include/rwlock.h +++ b/include/rwlock.h @@ -15,7 +15,7 @@ typedef struct { volatile int read_entry_lock; volatile int write_lock; } RWLock; -#define RWLOCK_STATIC_INITIALIZE { STATIC_REFCOUNT_INIT(0), STATIC_REFCOUNT_INIT(0), false, false, false } +#define RWLOCK_STATIC_INITIALIZE { ATOMIC_INIT_STATIC(0), ATOMIC_INIT_STATIC(0), false, false, false } void RWLockInit(RWLock *lock); void ReadLock(RWLock *lock); |