|
Boost Users : |
Subject: Re: [Boost-users] Several novice questions concerning threading
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2012-04-12 06:41:24
Le 12/04/12 11:24, Master a écrit :
> i modified an example <http://en.highscore.de/cpp/boost/>, but i dont
> know why it gets locked!
>
>
> is it not that , the mutex is not released until the writer function ,
> gets passed the wait(mutex) method ? and after that waits for the mutex ?
> and inside reader function , when it is awakened by the notify_all()
> method by writer function , it waits until writer releases the mutex
> and then it owns it and there it executes .
> so why do i fell into a locked down of some kind .
> if i run this example couple of times , some times it works fine and
> some times it just hangs at the beginning ( getting locked ? ) whats
> wrong with it . ?
>
Hi,
which version of Boost are you using? Which compiler and which platform?
Vicente
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