• Kristofer.Pettersson@naruto.'s avatar
    Bug#25042 OPTIMIZE TABLE cause race condition in IO CACHE SHARE · cd0a43f5
    Kristofer.Pettersson@naruto. authored
    - The condition variable implementation "lost" a signal to
      WaitOnSingleObject when a semaphore was released.
    - The signal could be consumed by a new call to pthread_cond_wait
      before all waiting threads had awoken.
    - The new implementation of pthread_cond_* uses events
      instead of semaphores. It also uses an extra lock to protect entry
      into new cond wait before the broadcast has finished.
    cd0a43f5
my_pthread.h 27.3 KB