From 77b017a0830410bc06fc4747d559b75e306dcdcc Mon Sep 17 00:00:00 2001 From: oldmud0 Date: Wed, 5 Jan 2022 21:39:23 -0600 Subject: 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. --- include/aolayer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') 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 frame_loader; QMutex mutex; QWaitCondition frameAdded; -- cgit