aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/uintmap.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/uintmap.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/uintmap.h')
-rw-r--r--Alc/uintmap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Alc/uintmap.h b/Alc/uintmap.h
index 6fc1190e..611ed39b 100644
--- a/Alc/uintmap.h
+++ b/Alc/uintmap.h
@@ -14,6 +14,8 @@ typedef struct UIntMap {
ALsizei limit;
RWLock lock;
} UIntMap;
+#define UINTMAP_STATIC_INITIALIZE_N(_n) { NULL, 0, 0, (_n), RWLOCK_STATIC_INITIALIZE }
+#define UINTMAP_STATIC_INITIALIZE UINTMAP_STATIC_INITIALIZE_N(~0)
void InitUIntMap(UIntMap *map, ALsizei limit);
void ResetUIntMap(UIntMap *map);