Boost logo

Boost Users :

Subject: Re: [Boost-users] Several novice questions concerning threading
From: Master (master.huricane_at_[hidden])
Date: 2012-04-12 12:32:42


>
>
> Hi ,which version of Boost are you using? Which compiler and which
> platform?
>
> Vicente
>
Thank you , i am using boost 1.49 , on windows 7 sp1 86x , using gcc 4.4.1 .

On first iteration:
> * Writer gains the lock
> * Reader is blocked while trying to obtain lock
> * Writer calls condition.notify_all()
> * Writer calls condition.wait(), thus releasing the mutex and blocking
> itself until condition.notify_*()
> * Reader is unblocked
> * Reader calls condition.wait(), releasing the mutex and blocking
> itself until condition.notify_*()
>
> :-)
> --rob
>
i just merely copied the example from this
link<http://en.highscore.de/cpp/boost/>(Multithread section exercises
) ! so this means the example is faulty ?



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