diff options
author | Chris Robinson <[email protected]> | 2023-05-08 20:01:14 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-05-08 20:01:14 -0700 |
commit | d2b000c7602bcc337a4f4e5590ef65c1cfcb4cb2 (patch) | |
tree | 8caeb4a6d06f8d017bd3c2c0e286e6d8cab1fa23 /core/context.h | |
parent | e1e375e5238282c36ab7dddf148461c4370de39d (diff) |
Use a variant for AsyncEvent
Diffstat (limited to 'core/context.h')
-rw-r--r-- | core/context.h | 3 |
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 |