Open jesson1 opened 2 years ago
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
These two places do not serve as locks. You should use std:: lock_ guard