aboutsummaryrefslogtreecommitdiffstats
path: root/al/event.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-12-27 01:05:16 -0800
committerChris Robinson <[email protected]>2020-12-27 01:05:16 -0800
commitcd2ebb9c3a4716544963dece75857efe1b30bbec (patch)
tree0ace8fc983fd91c81391e5ce73ad017a41c817d5 /al/event.cpp
parente20143fcc42e4a39b365b3f1395dfde94a30ac31 (diff)
Use a uint for a bitfield
Diffstat (limited to 'al/event.cpp')
-rw-r--r--al/event.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/al/event.cpp b/al/event.cpp
index 7267625d..a5d7be38 100644
--- a/al/event.cpp
+++ b/al/event.cpp
@@ -63,7 +63,7 @@ static int EventThread(ALCcontext *context)
continue;
}
- ALbitfieldSOFT enabledevts{context->mEnabledEvts.load(std::memory_order_acquire)};
+ uint enabledevts{context->mEnabledEvts.load(std::memory_order_acquire)};
if(!context->mEventCb) continue;
if(evt.EnumType == EventType_SourceStateChange)
@@ -164,7 +164,7 @@ START_API_FUNC
if(count <= 0) return;
if(!types) SETERR_RETURN(context, AL_INVALID_VALUE,, "NULL pointer");
- ALbitfieldSOFT flags{0};
+ uint flags{0};
const ALenum *types_end = types+count;
auto bad_type = std::find_if_not(types, types_end,
[&flags](ALenum type) noexcept -> bool
@@ -185,7 +185,7 @@ START_API_FUNC
if(enable)
{
- ALbitfieldSOFT enabledevts{context->mEnabledEvts.load(std::memory_order_relaxed)};
+ uint enabledevts{context->mEnabledEvts.load(std::memory_order_relaxed)};
while(context->mEnabledEvts.compare_exchange_weak(enabledevts, enabledevts|flags,
std::memory_order_acq_rel, std::memory_order_acquire) == 0)
{
@@ -196,7 +196,7 @@ START_API_FUNC
}
else
{
- ALbitfieldSOFT enabledevts{context->mEnabledEvts.load(std::memory_order_relaxed)};
+ uint enabledevts{context->mEnabledEvts.load(std::memory_order_relaxed)};
while(context->mEnabledEvts.compare_exchange_weak(enabledevts, enabledevts&~flags,
std::memory_order_acq_rel, std::memory_order_acquire) == 0)
{