
18 May
2011
18 May
'11
6:17 a.m.
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 mutex. -Phil