diff options
author | Chris Robinson <[email protected]> | 2017-04-19 19:54:17 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2017-04-19 19:54:17 -0700 |
commit | 5dcbb8db38bb9aa88d3be45cf84f2e7d993acdd0 (patch) | |
tree | f7e59a298568b62849eda41c00f52335d0296191 /OpenAL32/Include | |
parent | fbb5295f13711f978a1ad5a8abfc6c6d3970df0c (diff) |
Make the buffer list next pointer atomic
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alSource.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h index 795ddf24..d069abcd 100644 --- a/OpenAL32/Include/alSource.h +++ b/OpenAL32/Include/alSource.h @@ -5,6 +5,7 @@ #include "alMain.h" #include "alu.h" #include "hrtf.h" +#include "atomic.h" #define MAX_SENDS 16 #define DEFAULT_SENDS 2 @@ -19,7 +20,7 @@ struct ALsource; typedef struct ALbufferlistitem { struct ALbuffer *buffer; - struct ALbufferlistitem *volatile next; + ATOMIC(struct ALbufferlistitem*) next; } ALbufferlistitem; |