From: Alexander Terekhov (terekhov_at_[hidden])
Date: 2005-09-15 11:13:35
Roland Schwarz wrote:
> 3) a new waiter arrives while the gate still is closed
> he will block on the gate and not increment nWaitersBlocked yet
> 4) a signal arrives, while gate still is closed
> Now is 0 < nWaitersToUnblock < N, correct?
> But 0 == nWaitersBlocked
> the signal results in a NO-OP and consequently the
> waiter from 3) will never get it to see - hence it is lost ??
> I am studying the pthread_cond_wait.c pseudo code taken from
> SNAPSHOT 2004-05-16.
> What do I miss here?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk