aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-07-31 07:20:36 -0700
committerChris Robinson <[email protected]>2014-07-31 07:20:36 -0700
commit15a58eb38375247b6c57a7ceab5aa74895d638cd (patch)
tree5f546bab5504768356c27903a02b271c619b7d09 /OpenAL32/Include
parentcdfc5a4d31d17e156736bb8bdcaf93ea505237ac (diff)
Make the source's buffer queue head and current queue item atomic
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r--OpenAL32/Include/alSource.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenAL32/Include/alSource.h b/OpenAL32/Include/alSource.h
index 4b2ffe0b..8d74fc54 100644
--- a/OpenAL32/Include/alSource.h
+++ b/OpenAL32/Include/alSource.h
@@ -18,9 +18,9 @@ extern const ALsizei ResamplerPrePadding[ResamplerMax];
typedef struct ALbufferlistitem {
- struct ALbuffer *buffer;
- struct ALbufferlistitem *next;
- struct ALbufferlistitem *prev;
+ struct ALbuffer *buffer;
+ struct ALbufferlistitem *volatile next;
+ struct ALbufferlistitem *volatile prev;
} ALbufferlistitem;
@@ -98,8 +98,8 @@ typedef struct ALsource {
ALuint position_fraction;
/** Source Buffer Queue info. */
- ALbufferlistitem *volatile queue;
- ALbufferlistitem *volatile current_buffer;
+ ATOMIC(ALbufferlistitem*) queue;
+ ATOMIC(ALbufferlistitem*) current_buffer;
RWLock queue_lock;
/** Current buffer sample info. */