mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
fixes for hanging waiting_thread-t.c on windows
mysys/my_wincond.c: race condition: block gate could be left open forever, if cond_broadcast was done right after the last thread left WaitForMultipleObjects() on timeout mysys/thr_rwlock.c: make rwlocks behave similar to their distant linux/solaris relatives
This commit is contained in:
parent
ade71b2522
commit
c6a51b0447
2 changed files with 3 additions and 3 deletions
|
|
@ -126,7 +126,7 @@ int pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
|
|||
EnterCriticalSection(&cond->lock_waiting);
|
||||
cond->waiting--;
|
||||
|
||||
if (cond->waiting == 0 && result == (WAIT_OBJECT_0+BROADCAST))
|
||||
if (cond->waiting == 0)
|
||||
{
|
||||
/*
|
||||
We're the last waiter to be notified or to stop waiting, so
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue