summaryrefslogtreecommitdiff
path: root/configmgr/source/lock.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/lock.hxx
parentc5ca3f408ff0cd4796e74ad871171c5ba84fe406 (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/lock.hxx')
-rw-r--r--configmgr/source/lock.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/configmgr/source/lock.hxx b/configmgr/source/lock.hxx
index 8b3c7b487cad..b37e83a44ee2 100644
--- a/configmgr/source/lock.hxx
+++ b/configmgr/source/lock.hxx
@@ -30,12 +30,12 @@
#define INCLUDED_CONFIGMGR_SOURCE_LOCK_HXX
#include "sal/config.h"
-
#include "osl/mutex.hxx"
+#include "boost/shared_ptr.hpp"
namespace configmgr {
-extern osl::Mutex lock;
+boost::shared_ptr<osl::Mutex> lock();
}