Commit 3746dbdc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Manually reset the events

parent cbea1a49
......@@ -530,6 +530,7 @@ void vlc_cond_wait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex)
LeaveCriticalSection (&p_mutex->mutex);
result = WaitForSingleObjectEx (*p_condvar, INFINITE, TRUE);
EnterCriticalSection (&p_mutex->mutex);
ResetEvent (*p_condvar);
}
while (result == WAIT_IO_COMPLETION);
......@@ -574,6 +575,7 @@ int vlc_cond_timedwait (vlc_cond_t *p_condvar, vlc_mutex_t *p_mutex,
LeaveCriticalSection (&p_mutex->mutex);
result = WaitForSingleObjectEx (*p_condvar, delay, TRUE);
EnterCriticalSection (&p_mutex->mutex);
ResetEvent (*p_condvar);
}
while (result == WAIT_IO_COMPLETION);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment