|
Boost : |
From: Michael Caisse (boost_at_[hidden])
Date: 2007-07-20 16:17:10
Phillip Hellewell wrote:
<---- snip ---->
> Is this a good solution that could maybe be made part of boost, in such a
> way that it is guaranteed to work and be safe?
>
> Or is there a better solution?
>
How about using boost::shared_ptr. Something like this in your class instead:
boost::shared_ptr< boost::recursive_mutex > myMutex;
-- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk