aboutsummaryrefslogtreecommitdiffstats
path: root/router/router.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-06-29 10:39:27 -0700
committerChris Robinson <[email protected]>2017-06-29 10:39:27 -0700
commit058d57ef0352ee0f46fc5e0ebe76479660bfc44e (patch)
treefbae1802299c979047e4fcf2ef2ccc3790e7b1f5 /router/router.h
parente8ce8924d179d515fe1439163b7ea73e895f408c (diff)
Protect device enumeration in the router with a mutex
Diffstat (limited to 'router/router.h')
-rw-r--r--router/router.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/router/router.h b/router/router.h
index 30401f88..78f7b6c0 100644
--- a/router/router.h
+++ b/router/router.h
@@ -9,6 +9,7 @@
#include "AL/al.h"
#include "atomic.h"
#include "rwlock.h"
+#include "threads.h"
#ifndef UNUSED
@@ -150,6 +151,8 @@ ALint RemovePtrIntMapKey(PtrIntMap *map, ALvoid *key);
ALint LookupPtrIntMapKey(PtrIntMap *map, ALvoid *key);
+extern almtx_t EnumerationLock;
+
void ReleaseALC(void);
#endif /* ROUTER_ROUTER_H */