• R
    fix lost signals in cond vars · 1fa05210
    Rich Felker 提交于
    due to moving waiters from the cond var to the mutex in bcast, these
    waiters upon wakeup would steal slots in the count from newer waiters
    that had not yet been signaled, preventing the signal function from
    taking any action.
    
    to solve the problem, we simply use two separate waiter counts, and so
    that the original "total" waiters count is undisturbed by broadcast
    and still available for signal.
    1fa05210
pthread_cond_timedwait.c 1.4 KB