aboutsummaryrefslogtreecommitdiffstats
path: root/include/rwlock.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-07-22 18:18:14 -0700
committerChris Robinson <[email protected]>2014-07-22 18:18:14 -0700
commita3b1d4a5e20fade26bdfe2b964d8d363aac2acc3 (patch)
treec47dd10f78cc6fee6f595f1108e7a666d8fb3614 /include/rwlock.h
parent5a339a2a5b12545c105a2a3dcfb1d8e466b0381f (diff)
Implement RefCount as a generic atomic type
Diffstat (limited to 'include/rwlock.h')
-rw-r--r--include/rwlock.h2
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);