Commit e1b88ef5 by FritzFlorian

Fix concurrent access to work_done flag.

This should have been fine without the atomic property (as it is only a single writer and multiple readers to a single bit). Nevertheless we fixed the 'race' to remove a warning in the thread sanitizer.
parent a4b03ffe
...@@ -37,7 +37,7 @@ class scheduler { ...@@ -37,7 +37,7 @@ class scheduler {
base::barrier sync_barrier_; base::barrier sync_barrier_;
task *main_thread_root_task_; task *main_thread_root_task_;
bool work_section_done_; std::atomic<bool> work_section_done_;
bool terminated_; bool terminated_;
public: public:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment