aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 14:48:26 -0800
committerChris Robinson <[email protected]>2018-11-26 14:48:26 -0800
commit053599b2435844eddcc084414ab9dd1c5ad7ec23 (patch)
treedd041ee64b6d056708ad500f5e6d5b0d144cecc7 /OpenAL32/Include/alMain.h
parenta6923790fac739f0b98db6c06bc93543b9707556 (diff)
Avoid using the ATOMIC() macro
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index c08f9a09..297ff06f 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -667,7 +667,7 @@ typedef void (*POSTPROCESS)(ALCdevice *device, ALsizei SamplesToDo);
struct ALCdevice_struct {
RefCount ref{1u};
- ATOMIC(ALenum) Connected{AL_TRUE};
+ std::atomic<ALenum> Connected{AL_TRUE};
DeviceType Type{};
ALuint Frequency{};
@@ -687,7 +687,7 @@ struct ALCdevice_struct {
std::string DeviceName;
- ATOMIC(ALCenum) LastError{ALC_NO_ERROR};
+ std::atomic<ALCenum> LastError{ALC_NO_ERROR};
// Maximum number of sources that can be created
ALuint SourcesMax{};
@@ -783,12 +783,12 @@ struct ALCdevice_struct {
RefCount MixCount{0u};
// Contexts created on this device
- ATOMIC(ALCcontext*) ContextList{nullptr};
+ std::atomic<ALCcontext*> ContextList{nullptr};
almtx_t BackendLock;
ALCbackend *Backend{nullptr};
- ATOMIC(ALCdevice*) next{nullptr};
+ std::atomic<ALCdevice*> next{nullptr};
ALCdevice_struct(DeviceType type);