
7 Oct
2009
7 Oct
'09
6:39 a.m.
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!