Monitors like Java's Object.wait() / Object.notify() in boost ?

Hello, I am a new Boost user (and especialy boost::thread for a school project), I haven't found in Boost a feature like minotors in java, with the methods Object.wait() / Object.notify() / Object.notifyAll(). I have the problem of having one thread that produces information, and several threads that extract infos when available... but all the reader threads needs to be woken up only when more data is available (with an equivalent to nofityAll()). Does such features exists in Boost::thread ??? Thank you for any tip. Have a nice day. Yves Dessertine IT student

See boost::condition (http://www.boost.org/doc/html/boost/condition.html)
-----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Yves Dessertine Sent: 12 November 2007 09:16 To: boost-users@lists.boost.org Subject: [Boost-users] Monitors like Java's Object.wait() / Object.notify()in boost ?
Hello,
I am a new Boost user (and especialy boost::thread for a school project), I haven't found in Boost a feature like minotors in java, with the methods Object.wait() / Object.notify() / Object.notifyAll().
I have the problem of having one thread that produces information, and several threads that extract infos when available... but all the reader threads needs to be woken up only when more data is available (with an equivalent to nofityAll()).
Does such features exists in Boost::thread ??? Thank you for any tip.
Have a nice day.
Yves Dessertine IT student _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Hi!
Yes, read more on condition variables at
http://www.boost.org/doc/html/boost/condition.html
Best Regards,
Ovanes
On 11/12/07, Yves Dessertine
Hello,
I am a new Boost user (and especialy boost::thread for a school project), I haven't found in Boost a feature like minotors in java, with the methods Object.wait() / Object.notify() / Object.notifyAll().
I have the problem of having one thread that produces information, and several threads that extract infos when available... but all the reader threads needs to be woken up only when more data is available (with an equivalent to nofityAll()).
Does such features exists in Boost::thread ??? Thank you for any tip.
Have a nice day.
Yves Dessertine IT student _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (3)
-
Jeff Foster
-
Ovanes Markarian
-
Yves Dessertine