aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/alcontext.h22
-rw-r--r--Alc/backends/jack.cpp2
-rw-r--r--Alc/backends/null.cpp2
-rw-r--r--Alc/backends/opensl.cpp2
-rw-r--r--Alc/backends/qsa.cpp2
-rw-r--r--Alc/backends/sndio.cpp4
-rw-r--r--Alc/backends/solaris.cpp2
-rw-r--r--Alc/backends/wave.cpp2
8 files changed, 19 insertions, 19 deletions
diff --git a/Alc/alcontext.h b/Alc/alcontext.h
index c6824d78..056d9003 100644
--- a/Alc/alcontext.h
+++ b/Alc/alcontext.h
@@ -71,7 +71,7 @@ struct ALCcontext_struct {
al::vector<ALeffectslotPtr> EffectSlotList;
almtx_t EffectSlotLock;
- ATOMIC(ALenum) LastError{AL_NO_ERROR};
+ std::atomic<ALenum> LastError{AL_NO_ERROR};
DistanceModel mDistanceModel{DistanceModel::Default};
ALboolean SourceDistanceModel{AL_FALSE};
@@ -90,30 +90,30 @@ struct ALCcontext_struct {
* indicates if updates are currently happening).
*/
RefCount UpdateCount{0u};
- ATOMIC(ALenum) HoldUpdates{AL_FALSE};
+ std::atomic<ALenum> HoldUpdates{AL_FALSE};
ALfloat GainBoost{1.0f};
- ATOMIC(ALcontextProps*) Update{nullptr};
+ std::atomic<ALcontextProps*> Update{nullptr};
/* Linked lists of unused property containers, free to use for future
* updates.
*/
- ATOMIC(ALcontextProps*) FreeContextProps{nullptr};
- ATOMIC(ALlistenerProps*) FreeListenerProps{nullptr};
- ATOMIC(ALvoiceProps*) FreeVoiceProps{nullptr};
- ATOMIC(ALeffectslotProps*) FreeEffectslotProps{nullptr};
+ std::atomic<ALcontextProps*> FreeContextProps{nullptr};
+ std::atomic<ALlistenerProps*> FreeListenerProps{nullptr};
+ std::atomic<ALvoiceProps*> FreeVoiceProps{nullptr};
+ std::atomic<ALeffectslotProps*> FreeEffectslotProps{nullptr};
ALvoice **Voices{nullptr};
std::atomic<ALsizei> VoiceCount{0};
ALsizei MaxVoices{0};
- ATOMIC(ALeffectslotArray*) ActiveAuxSlots{nullptr};
+ std::atomic<ALeffectslotArray*> ActiveAuxSlots{nullptr};
std::thread EventThread;
alsem_t EventSem;
ll_ringbuffer *AsyncEvents{nullptr};
- ATOMIC(ALbitfieldSOFT) EnabledEvts{0u};
+ std::atomic<ALbitfieldSOFT> EnabledEvts{0u};
std::mutex EventCbLock;
ALEVENTPROCSOFT EventCb{};
void *EventParam{nullptr};
@@ -124,7 +124,7 @@ struct ALCcontext_struct {
ALCdevice *const Device;
const ALCchar *ExtensionList{nullptr};
- ATOMIC(ALCcontext*) next{nullptr};
+ std::atomic<ALCcontext*> next{nullptr};
ALlistener Listener{};
@@ -199,7 +199,7 @@ struct ALcontextProps {
DistanceModel mDistanceModel;
ALfloat MetersPerUnit;
- ATOMIC(struct ALcontextProps*) next;
+ std::atomic<ALcontextProps*> next;
};
#endif /* ALCONTEXT_H */
diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp
index d0687939..72a27c44 100644
--- a/Alc/backends/jack.cpp
+++ b/Alc/backends/jack.cpp
@@ -151,7 +151,7 @@ struct ALCjackPlayback final : public ALCbackend {
ll_ringbuffer_t *Ring{nullptr};
alsem_t Sem;
- ATOMIC(ALenum) killNow{AL_TRUE};
+ std::atomic<ALenum> killNow{AL_TRUE};
althrd_t thread;
};
diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp
index 7c7f5e5e..440da5e8 100644
--- a/Alc/backends/null.cpp
+++ b/Alc/backends/null.cpp
@@ -45,7 +45,7 @@ constexpr ALCchar nullDevice[] = "No Output";
struct ALCnullBackend final : public ALCbackend {
- ATOMIC(int) killNow{AL_TRUE};
+ std::atomic<ALenum> killNow{AL_TRUE};
std::thread thread;
};
diff --git a/Alc/backends/opensl.cpp b/Alc/backends/opensl.cpp
index 5b80ea65..2a87e19b 100644
--- a/Alc/backends/opensl.cpp
+++ b/Alc/backends/opensl.cpp
@@ -148,7 +148,7 @@ struct ALCopenslPlayback final : public ALCbackend {
ALsizei mFrameSize{0};
- ATOMIC(ALenum) mKillNow{AL_TRUE};
+ std::atomic<ALenum> mKillNow{AL_TRUE};
althrd_t mThread;
};
diff --git a/Alc/backends/qsa.cpp b/Alc/backends/qsa.cpp
index a6d1e0ea..66f3e601 100644
--- a/Alc/backends/qsa.cpp
+++ b/Alc/backends/qsa.cpp
@@ -51,7 +51,7 @@ struct qsa_data {
ALvoid* buffer;
ALsizei size;
- ATOMIC(ALenum) killNow;
+ std::atomic<ALenum> killNow;
althrd_t thread;
};
diff --git a/Alc/backends/sndio.cpp b/Alc/backends/sndio.cpp
index de5f74e4..5e7b48af 100644
--- a/Alc/backends/sndio.cpp
+++ b/Alc/backends/sndio.cpp
@@ -43,7 +43,7 @@ struct SndioPlayback final : public ALCbackend {
ALvoid *mix_data{nullptr};
ALsizei data_size{0};
- ATOMIC(int) killNow{AL_TRUE};
+ std::atomic<ALenum> killNow{AL_TRUE};
althrd_t thread;
};
@@ -280,7 +280,7 @@ struct SndioCapture final : public ALCbackend {
ll_ringbuffer_t *ring{nullptr};
- ATOMIC(int) killNow{AL_TRUE};
+ std::atomic<ALenum> killNow{AL_TRUE};
althrd_t thread;
};
diff --git a/Alc/backends/solaris.cpp b/Alc/backends/solaris.cpp
index 93de4384..2d26fb6a 100644
--- a/Alc/backends/solaris.cpp
+++ b/Alc/backends/solaris.cpp
@@ -49,7 +49,7 @@ struct ALCsolarisBackend final : public ALCbackend {
ALubyte *mix_data{nullptr};
int data_size{0};
- ATOMIC(ALenum) killNow{AL_TRUE};
+ std::atomic<ALenum> killNow{AL_TRUE};
althrd_t thread;
};
diff --git a/Alc/backends/wave.cpp b/Alc/backends/wave.cpp
index bb37d979..ec5e787b 100644
--- a/Alc/backends/wave.cpp
+++ b/Alc/backends/wave.cpp
@@ -84,7 +84,7 @@ struct ALCwaveBackend final : public ALCbackend {
al::vector<ALbyte> mBuffer;
- ATOMIC(ALenum) killNow{AL_TRUE};
+ std::atomic<ALenum> killNow{AL_TRUE};
std::thread thread;
};