Boost logo

Boost Users :

From: Maik Beckmann (maikbeckmann_at_[hidden])
Date: 2006-12-29 18:55:59


Am Samstag, den 30.12.2006, 00:00 +0100 schrieb Giacomo Piccolo:
> Hello everybody,
>
> I've got a synchronization problem with two threads and I need a semaphore
> or a condition class in which a thread can wait on until that condition is
> verified.
> In other words i need to synchronize two or more threads and I need the
> wait() and notify() routines.
>
> I found some useful code in boost::thread libraries, but it seems I could
> not use it because it seems not completely built...or.. boh I don't really
> know.
>

Boost.Thread isn't header only, you have to build link against it. On
Linux you should install the related package of your distro. If you do
it on your own(i.e. because you don't have install rights) follow the
getting started guide
   ${BOOST_DIR}/more/getting_started/index.html

HTH Maik


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net