Boost logo

Boost :

From: Colin Caughie (c.caughie_at_[hidden])
Date: 2008-02-08 10:27:34


Frank Mori Hess <fmhess <at> speakeasy.net> writes:

> Why would you do that? Boost.thread does provide boost::condition, which
> isn't exactly a semaphore but conditions are designed for just the purpose
> you describe.

So it does! I hadn't noticed that before. Presumably this works just like Posix
condition variables?

OK forget what I said about semaphores, boost::condition should do exactly what
you need. :)

Unless you need counting of course, but you probably don't.

Colin


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