aboutsummaryrefslogtreecommitdiffstats
path: root/core/context.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2024-01-01 10:53:52 -0800
committerChris Robinson <[email protected]>2024-01-01 10:53:52 -0800
commitaa23d619324ca7e9d51829a2cc5d276c98305eb9 (patch)
tree59aba746e891409b01655c332a5aa4887217176b /core/context.h
parenta03bfe04c16fa2df0ac86cde53154ca99c18ad53 (diff)
Make and use a (simple) atomic unique_ptr
Diffstat (limited to 'core/context.h')
-rw-r--r--core/context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/context.h b/core/context.h
index 0b830205..6fc1ed5d 100644
--- a/core/context.h
+++ b/core/context.h
@@ -112,7 +112,7 @@ struct ContextBase {
ContextParams mParams;
using VoiceArray = al::FlexArray<Voice*>;
- std::atomic<VoiceArray*> mVoices{};
+ al::atomic_unique_ptr<VoiceArray> mVoices{};
std::atomic<size_t> mActiveVoiceCount{};
void allocVoices(size_t addcount);