summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/inc/unodispatch.hxx
diff options
context:
space:
mode:
authorOliver Specht <os@openoffice.org>2002-09-09 06:03:11 +0000
committerOliver Specht <os@openoffice.org>2002-09-09 06:03:11 +0000
commitec14a6e25f7898ea293b0f989804ee85136f69e8 (patch)
tree93259fcff13fe74fa588fcbca39341606a1a5e14 /sw/source/ui/inc/unodispatch.hxx
parent#99281# MaskColor added (diff)
downloadcore-ec14a6e25f7898ea293b0f989804ee85136f69e8.tar.gz
core-ec14a6e25f7898ea293b0f989804ee85136f69e8.zip
#102295# lock solar mutex instead of own mutex
Diffstat (limited to 'sw/source/ui/inc/unodispatch.hxx')
-rw-r--r--sw/source/ui/inc/unodispatch.hxx24
1 files changed, 19 insertions, 5 deletions
diff --git a/sw/source/ui/inc/unodispatch.hxx b/sw/source/ui/inc/unodispatch.hxx
index d731fdba8577..3e8b3ee75942 100644
--- a/sw/source/ui/inc/unodispatch.hxx
+++ b/sw/source/ui/inc/unodispatch.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unodispatch.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: os $ $Date: 2001-10-01 13:14:55 $
+ * last change: $Author: os $ $Date: 2002-09-09 07:03:10 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -83,8 +83,11 @@
#include <cppuhelper/implbase3.hxx>
#endif
#include <list>
-#ifndef _OSL_MUTEX_HXX_
-#include <osl/mutex.hxx>
+//#ifndef _OSL_MUTEX_HXX_
+//#include <osl/mutex.hxx>
+//#endif
+#ifndef _VOS_MUTEX_HXX_
+#include <vos/mutex.hxx>
#endif
class SwView;
@@ -96,7 +99,18 @@ class SwXDispatchProviderInterceptor : public cppu::WeakImplHelper3
::com::sun::star::lang::XUnoTunnel
>
{
- ::osl::Mutex m_aMutex;
+ class DispatchMutexLock_Impl
+ {
+ //::osl::MutexGuard aGuard; #102295# solar mutex has to be used currently
+ vos::OGuard aGuard;
+ DispatchMutexLock_Impl();
+ public:
+ DispatchMutexLock_Impl(SwXDispatchProviderInterceptor&);
+ ~DispatchMutexLock_Impl();
+ };
+ friend class DispatchMutexLock_Impl;
+
+// ::osl::Mutex m_aMutex;#102295# solar mutex has to be used currently
// the component which's dispatches we're intercepting
::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterception> m_xIntercepted;