aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/rwlock.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-04-17 01:09:25 -0700
committerChris Robinson <[email protected]>2014-04-17 01:09:25 -0700
commitfbb4cbbe01b9ba2fa7b6c2450d2755c244d15151 (patch)
treed538cf6b722def304bf9195dd8bc8f38b17b804a /Alc/rwlock.h
parente5d39a5f4c871183c7e409abff3c3a6d6c40bf17 (diff)
Keep TlsDestructors within threads.c
This basically makes the threads implementation self-contained in threads.c and threads.h, except for the UIntMap/RWLock implementations.
Diffstat (limited to 'Alc/rwlock.h')
-rw-r--r--Alc/rwlock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Alc/rwlock.h b/Alc/rwlock.h
index efbab4e8..0c321a11 100644
--- a/Alc/rwlock.h
+++ b/Alc/rwlock.h
@@ -11,6 +11,7 @@ typedef struct {
volatile ALenum read_entry_lock;
volatile ALenum write_lock;
} RWLock;
+#define RWLOCK_STATIC_INITIALIZE { 0, 0, AL_FALSE, AL_FALSE, AL_FALSE }
void RWLockInit(RWLock *lock);
void ReadLock(RWLock *lock);