From 63928b55a2eca8da0007c95605dd76539b140cce Mon Sep 17 00:00:00 2001 From: dhthwy <302825+dhthwy@users.noreply.github.com> Date: Wed, 27 Dec 2023 21:04:33 -0500 Subject: [PATCH] rendermax: make isDone an std::atomic --- plugins/rendermax/renderer_light.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/rendermax/renderer_light.hpp b/plugins/rendermax/renderer_light.hpp index f6a158d7f..5d6799ec9 100644 --- a/plugins/rendermax/renderer_light.hpp +++ b/plugins/rendermax/renderer_light.hpp @@ -266,7 +266,7 @@ class lightThread void combine(); //combine existing canvas into global lightmap public: std::thread *myThread; - bool isDone; //no mutex, because bool is atomic + std::atomic isDone; lightThread(lightThreadDispatch& dispatch); ~lightThread(); void run();