How many waiting threads will wake up if I call std::condition_variable::notify_one() twice without any time interval, like this:
{
std::unique_lock<std::mutex> lock(condvar_mutex);
condvar.notify_one();
condvar.notify_one();
}
Is there any guarantee that these notifications will be delivered to different threads, not the same thread several times?
cond_var
and is rather blocked on acondvar_mutex
? – Denti