Skip to content

Commit

Permalink
rendermax: make isDone an std::atomic
Browse files Browse the repository at this point in the history
  • Loading branch information
dhthwy committed Dec 28, 2023
1 parent 54769eb commit 63928b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/rendermax/renderer_light.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> isDone;
lightThread(lightThreadDispatch& dispatch);
~lightThread();
void run();
Expand Down

0 comments on commit 63928b5

Please sign in to comment.