|
Boost Users : |
Subject: Re: [Boost-users] boost::recursive_mutex doesn't lock ???
From: christopher.pohl_at_[hidden]
Date: 2010-11-03 11:29:11
Hi Chris,
Chris wrote:
> well, I start a main thread up to a certain point but don't want to
> continue until 2 other threads have finished executing some Init
> statements
[snip]
> How should I implement it then? not using recursive_mutex?
That sounds like a sync barrier will fit much better here.
http://boost.org/doc/libs/1_44_0/doc/html/thread/synchronization.html#thread.synchronization.barriers
Christopher.
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