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
Threading: Prevent EventObject lost wakeup and fix Mutex destructor
The issue is that the mutex is unlocked before signaling the condition variable.
This can lead to a "lost wakeup" problem where a signal is sent when no thread is waiting, causing the signal to be lost and a waiting thread to potentially sleep forever.
The fix is to signal the condition variable while the mutex is still locked.
0 commit comments