Boost logo

Boost :

From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2007-07-20 16:44:09


Phillip Hellewell wrote:
> On 7/20/07, Stefan Seefeld <seefeld_at_[hidden]> wrote:
>> Michael Caisse wrote:
>>> How about using boost::shared_ptr. Something like this in your class
>> instead:
>>> boost::shared_ptr< boost::recursive_mutex > myMutex;
>> Then you would protect both copies of the resource that is part of the
>> class
>> by a single (shared) mutex. That doesn't sound right.
>>
>
> Exactly, I don't want to copy or share the mutex in any way. I want each
> object to have its own mutex.

Right. And how do you think the compiler will know that ?

Regards,
                Stefan

-- 
      ...ich hab' noch einen Koffer in Berlin...

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