aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-05-27 19:23:39 -0700
committerChris Robinson <[email protected]>2016-05-27 19:23:39 -0700
commitc837484015e186076165515882beec389f02a987 (patch)
tree892865583572d1db875e7c8d436fda90826e3b46 /OpenAL32/Include/alMain.h
parent01f3e33df95c83efeb46a8f51670c99251d0cfdb (diff)
Use a specific lock for the backend's stop/reset/play calls
This helps protect against the device changing unexpectedly from multiple threads, instead of using the global list/library lock.
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index f709e9bd..50162b0e 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -37,6 +37,7 @@
#include "vector.h"
#include "alstring.h"
#include "almalloc.h"
+#include "threads.h"
#include "hrtf.h"
@@ -644,6 +645,7 @@ struct ALCdevice_struct
// Contexts created on this device
ATOMIC(ALCcontext*) ContextList;
+ almtx_t BackendLock;
struct ALCbackend *Backend;
void *ExtraData; // For the backend's use