You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// this thread becomes alive later than when setDataReady sends notification
// and thus ends up missing the notification
thread t1 = thread(waitingForWork);
t1.join(), t2.join();
return 0;
//Problem: Lost wakeup - The condition_variable class is a synchronization primitive that can be used to block a thread or multiple threads "at the same time"