As I understand it, when I have a collection of threads protected by a std::lock_guard
or std::unique_lock
over std::mutex
and the mutex is unlocked by either explicitly unlocking it or by the lock going out of scope, then the waiting threads are notified.
Is this notification a notify_one
or a notify_all
?
I suspect the former to avoid hurry up and wait but would like to be sure.