Continue reading "Remember to lock around all std::condition_variable “variables”"
Remember to lock around all std::condition_variable “variables”
I recently received a question regarding our dispatch queue implementation: ""Quote I had a question concerning the locking of the mutex in the destructor to set the boolean quit_ variable. The way I see it, the mutex protects the queue access and does not really refer to the quit_ variable. When the variable has been …
