aboutsummaryrefslogtreecommitdiffstats
path: root/core/context.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-08 20:01:14 -0700
committerChris Robinson <[email protected]>2023-05-08 20:01:14 -0700
commitd2b000c7602bcc337a4f4e5590ef65c1cfcb4cb2 (patch)
tree8caeb4a6d06f8d017bd3c2c0e286e6d8cab1fa23 /core/context.h
parente1e375e5238282c36ab7dddf148461c4370de39d (diff)
Use a variant for AsyncEvent
Diffstat (limited to 'core/context.h')
-rw-r--r--core/context.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/context.h b/core/context.h
index 9723eac3..4febd38d 100644
--- a/core/context.h
+++ b/core/context.h
@@ -13,6 +13,7 @@
#include "async_event.h"
#include "atomic.h"
#include "bufferline.h"
+#include "opthelpers.h"
#include "threads.h"
#include "vecmat.h"
#include "vector.h"
@@ -137,7 +138,7 @@ struct ContextBase {
std::thread mEventThread;
al::semaphore mEventSem;
std::unique_ptr<RingBuffer> mAsyncEvents;
- using AsyncEventBitset = std::bitset<AsyncEvent::UserEventCount>;
+ using AsyncEventBitset = std::bitset<al::to_underlying(AsyncEnableBits::Count)>;
std::atomic<AsyncEventBitset> mEnabledEvts{0u};
/* Asynchronous voice change actions are processed as a linked list of