$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] boost::recursive_mutex doesn't lock ???
From: Martin Dyring-Andersen (mda_at_[hidden])
Date: 2010-11-03 09:32:10
Chris wrote:
[...]
> but the main thread doesn't stop at
> boost::recursive_mutex::scoped_lock lock(io_mutex);
>
> How should I implement it then? not using recursive_mutex?
I'd go for a barrier or condition variable(s) instead. A mutex is best suited locking/exclusion, not waiting for a condition.
-- Best regards, Martin Dyring-Andersen