Boost logo

Boost :

Subject: Re: [boost] [mutex] move / merge
From: Phil Bouchard (philippe_at_[hidden])
Date: 2011-05-18 02:17:09

On 5/17/2011 10:56 PM, Phil Bouchard wrote:
> Sorry for the confusion but it turns out I won't need this operation
> either.

The bottom line is I would need a ~mutex() that discards errors and an
atomic way of performing the following consecutive locks:

template <typename V>
     block_ptr & operator = (block_ptr<V> const & p)
         mutex::scoped_lock scoped_lock1(ps_->redir()->mutex_);
         mutex::scoped_lock scoped_lock2(p.ps_->redir()->mutex_);


But the latter would require locking a global mutex once again so
there's no real gain of optimizing it because it already locks a global


Boost list run by bdawes at, gregod at, cpdaniel at, john at