diff options
author | Chris Robinson <[email protected]> | 2018-03-02 18:38:59 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-02 19:16:55 -0800 |
commit | bd32a682f7476e7bdd8240e0244adff047d99f49 (patch) | |
tree | 0b2a70a69153978b89638218f19e3d2d5c3b4d28 /OpenAL32/Include | |
parent | 03274a5b95146675c05b5b6a0340f45a7b122c50 (diff) |
Use atomic variables instead of volatile
Diffstat (limited to 'OpenAL32/Include')
-rw-r--r-- | OpenAL32/Include/alMain.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h index 1726cb37..b21b76a3 100644 --- a/OpenAL32/Include/alMain.h +++ b/OpenAL32/Include/alMain.h @@ -581,7 +581,7 @@ struct ALCdevice_struct { almtx_t BackendLock; struct ALCbackend *Backend; - ALCdevice *volatile next; + ATOMIC(ALCdevice*) next; }; // Frequency was requested by the app or config file @@ -692,7 +692,7 @@ struct ALCcontext_struct { ALCdevice *Device; const ALCchar *ExtensionList; - ALCcontext *volatile next; + ATOMIC(ALCcontext*) next; /* Memory space used by the listener (and possibly default effect slot) */ alignas(16) ALCbyte _listener_mem[]; |