On 6/20/22 08:08, Jinoh Kang wrote:
+static DWORD WINAPI signal_and_wait_proc( void *arg ) +{
- HANDLE *events = arg;
- /* Atomically signal and wait to put thread in blocking state */
- return SignalObjectAndWait(events[0], events[1], INFINITE, FALSE);
+}
SignalObjectAndWait() is not atomic.