summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r--logic/pipeline.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp
index 67669732..c355bf19 100644
--- a/logic/pipeline.cpp
+++ b/logic/pipeline.cpp
@@ -601,7 +601,7 @@ void pipeline::toggle_enabled() { b.negate(f_enabled_p); }
void bits::set(bit_flags flag, bool val)
{
- spinlock_guard l(lock);
+ QMutexLocker l(&lock);
flags &= ~flag;
if (val)
@@ -610,14 +610,14 @@ void bits::set(bit_flags flag, bool val)
void bits::negate(bit_flags flag)
{
- spinlock_guard l(lock);
+ QMutexLocker l(&lock);
flags ^= flag;
}
bool bits::get(bit_flags flag)
{
- spinlock_guard l(lock);
+ QMutexLocker l(&lock);
return !!(flags & flag);
}