
20 Jul
2007
20 Jul
'07
8:44 p.m.
Phillip Hellewell wrote:
On 7/20/07, Stefan Seefeld <seefeld@sympatico.ca> 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...