Boost logo

Boost :

From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2005-09-14 09:05:03


Alexander Terekhov schrieb:

>Roland Schwarz wrote:
>
>[... too strict locking ...]
>
>
>
>>Could you please elaborate?
>>
>>
>
>Please see
>
>http://groups.google.de/group/comp.programming.threads/msg/846010a82d6c51b0
>
>including followups.
>
>
>
Thank you, this was very instructive indeed.
I.e. the seqeunce

t1: Thread A enters wait
t2: Thread B signals

must result in a guaranted wakeup.
While

t1: ThreadA enters wait
t2: Thread B signals
...
tx: Thread X signals
...
ty: Thread Y signals
...

should not block off any successive signallers (X,Y,...) until
another wait is entered. My and as I learned by now your
first attempt too suffers exactly from this.

Thank you,
Roland


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk