ThreadPool icon indicating copy to clipboard operation
ThreadPool copied to clipboard

Why not use std::atomic<bool> instead of bool?

Open Igamegum opened this issue 7 years ago • 4 comments

Igamegum avatar Jan 30 '18 08:01 Igamegum

The member variable stop

Igamegum avatar Jan 30 '18 08:01 Igamegum

You do not need atomic access there because you still have to cover its use with mutex when you are using the conditional variable.

wilx avatar Jan 30 '18 12:01 wilx

oh , I see your answer here.

jellynian avatar Feb 20 '18 08:02 jellynian