diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 20:36:03 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-11-25 20:36:03 +0000 |
commit | 83ab35b7351ba42097efc9c2b04044038e50e4f7 (patch) | |
tree | 16d9cc994bb549167c182201897f142f53e25890 /configmgr/source/rootaccess.hxx | |
parent | c5ca3f408ff0cd4796e74ad871171c5ba84fe406 (diff) |
Resolves: fdo#31494# get ownership right
Ensure that the mutex lives as long as all its consumers. And
avoid launching threads if they have no work to do.
Diffstat (limited to 'configmgr/source/rootaccess.hxx')
-rw-r--r-- | configmgr/source/rootaccess.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configmgr/source/rootaccess.hxx b/configmgr/source/rootaccess.hxx index c7300c4620d6..4d74167c8505 100644 --- a/configmgr/source/rootaccess.hxx +++ b/configmgr/source/rootaccess.hxx @@ -39,6 +39,7 @@ #include "com/sun/star/util/ChangesSet.hpp" #include "com/sun/star/util/XChangesBatch.hpp" #include "com/sun/star/util/XChangesNotifier.hpp" +#include "boost/shared_ptr.hpp" #include "rtl/ref.hxx" #include "rtl/ustring.hxx" #include "sal/types.h" @@ -151,6 +152,8 @@ private: rtl::OUString name_; bool finalized_; ChangesListeners changesListeners_; + + boost::shared_ptr<osl::Mutex> lock_; }; } |