aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/null.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-26 14:31:54 -0800
committerChris Robinson <[email protected]>2018-11-26 14:31:54 -0800
commita6923790fac739f0b98db6c06bc93543b9707556 (patch)
treee30677dd529ba0a2fecb6cbd6232f862acdc27dd /Alc/backends/null.cpp
parent5b2b96b24598636e35f1fe7ecf868b09571065d6 (diff)
Avoid using ATOMIC_INIT
Diffstat (limited to 'Alc/backends/null.cpp')
-rw-r--r--Alc/backends/null.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Alc/backends/null.cpp b/Alc/backends/null.cpp
index 47ebd0ae..7c7f5e5e 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;
+ ATOMIC(int) killNow{AL_TRUE};
std::thread thread;
};
@@ -72,8 +72,6 @@ void ALCnullBackend_Construct(ALCnullBackend *self, ALCdevice *device)
new (self) ALCnullBackend{};
ALCbackend_Construct(STATIC_CAST(ALCbackend, self), device);
SET_VTABLE2(ALCnullBackend, ALCbackend, self);
-
- ATOMIC_INIT(&self->killNow, AL_TRUE);
}
void ALCnullBackend_Destruct(ALCnullBackend *self)