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/access.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/access.hxx')
-rw-r--r-- | configmgr/source/access.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configmgr/source/access.hxx b/configmgr/source/access.hxx index 32c0ea9e8a5c..8a05329683be 100644 --- a/configmgr/source/access.hxx +++ b/configmgr/source/access.hxx @@ -36,6 +36,7 @@ #include <vector> #include "boost/noncopyable.hpp" +#include "boost/shared_ptr.hpp" #include "com/sun/star/beans/PropertyVetoException.hpp" #include "com/sun/star/beans/UnknownPropertyException.hpp" #include "com/sun/star/beans/XExactName.hpp" @@ -569,6 +570,8 @@ private: PropertiesChangeListeners propertiesChangeListeners_; bool disposed_; + boost::shared_ptr<osl::Mutex> lock_; + #if OSL_DEBUG_LEVEL > 0 protected: enum { |