Boost logo

Boost :

Subject: Re: [boost] [mutex] move / merge
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2011-05-18 01:43:47


Phil Bouchard wrote:
>
> On 5/17/2011 9:11 PM, Steven Watanabe wrote:
>>
>> What do you mean by merge?
>
> So you have 2 sets that could be locked by thread 1 and 2. Now thread 1
> wants to take ownership of the 2 sets so it'll need to lock mutex 1 and 2.
>
>

This is not supported directly by the underlying platforms and will require
the need of synchronization between the threads which will result in a
expensive operation that you could implement yourself on top of the existing
API.

Could you explain in which case do you need to use this merge operation?

Best,
Vicente

--
View this message in context: http://boost.2283326.n4.nabble.com/mutex-move-merge-tp3531125p3531638.html
Sent from the Boost - Dev mailing list archive at Nabble.com.

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk