From 83ab35b7351ba42097efc9c2b04044038e50e4f7 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 25 Nov 2010 20:36:03 +0000 Subject: 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. --- configmgr/source/lock.hxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configmgr/source/lock.hxx') 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 lock(); } -- cgit