aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoroldmud0 <oldmud0@users.noreply.github.com>2022-01-05 21:39:23 -0600
committeroldmud0 <oldmud0@users.noreply.github.com>2022-01-05 21:39:23 -0600
commit77b017a0830410bc06fc4747d559b75e306dcdcc (patch)
treeb252effb50e450ec192555314391c25ad4e66caf /include
parent593bd54000be14c9a1455914285c1b2549b0fa51 (diff)
Fix MSVC builds freezing due to AOLayer concurrency issue
Variables accessed across threads should be atomic. Also gave AOLayer its own thread pool and switched some lock calls to use QMutexLocker semantics.
Diffstat (limited to 'include')
-rw-r--r--include/aolayer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/aolayer.h b/include/aolayer.h
index b8907152..4d2629b8 100644
--- a/include/aolayer.h
+++ b/include/aolayer.h
@@ -148,7 +148,7 @@ private:
// used in populate_vectors
void load_next_frame();
- bool exit_loop; //awful solution but i'm not fucking using QThread
+ std::atomic_bool exit_loop; //awful solution but i'm not fucking using QThread
QFuture<void> frame_loader;
QMutex mutex;
QWaitCondition frameAdded;