rendermax: make isDone an std::atomic

develop
dhthwy 2023-12-27 21:04:33 -05:00
parent 54769ebdbf
commit 63928b55a2
1 changed files with 1 additions and 1 deletions

@ -266,7 +266,7 @@ class lightThread
void combine(); //combine existing canvas into global lightmap void combine(); //combine existing canvas into global lightmap
public: public:
std::thread *myThread; std::thread *myThread;
bool isDone; //no mutex, because bool is atomic std::atomic<bool> isDone;
lightThread(lightThreadDispatch& dispatch); lightThread(lightThreadDispatch& dispatch);
~lightThread(); ~lightThread();
void run(); void run();