summaryrefslogtreecommitdiffstats
path: root/configmgr/source/access.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-11-25 20:36:03 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-25 20:36:03 +0000
commit83ab35b7351ba42097efc9c2b04044038e50e4f7 (patch)
tree16d9cc994bb549167c182201897f142f53e25890 /configmgr/source/access.hxx
parentMerge branch 'master' of ssh://git.freedesktop.org/git/libreoffice/libs-core (diff)
downloadcore-83ab35b7351ba42097efc9c2b04044038e50e4f7.tar.gz
core-83ab35b7351ba42097efc9c2b04044038e50e4f7.zip
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.hxx3
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 {