|
Boost : |
Subject: Re: [boost] [threads] wait() and signal() ?
From: David M. Cotter (me_at_[hidden])
Date: 2009-10-07 02:39:59
>> how can i do this with boost::thread ?
>
> A condition variable doesn't have state. If you call wait, you
> will always block until another thread calls notify_one or notify_all.
> notify_one and notify_all have no effect if no threads are waiting.
well that completely explains it :)
thanks. i've added that state to my class and now it's working great.
thanks again!
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk