ThreadPool
ThreadPool copied to clipboard
fix: should use lock_guard
These two places do not serve as locks. You should use std:: lock_ guard
Same as #74 but its author closes itself.
is it necessary? what's different in this situation?
is it necessary? what's different in this situation?
I think they are same. lock_gurad and unique_lock are locked on construction.
is it necessary? what's different in this situation?
this answer is good. For condition_variable we should use unique_lock