summaryrefslogtreecommitdiff
path: root/winaccessibility/source/service/AccComponentEventListener.cxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2013-11-19 20:12:23 +0100
committerMichael Stahl <mstahl@redhat.com>2013-11-20 01:33:42 +0100
commit3e1c7d12eeefdfc50b842fe34f3db657292359b9 (patch)
treeede628029df8a2a9aba9eece4f6876a6ffc2b371 /winaccessibility/source/service/AccComponentEventListener.cxx
parented750424f7c02b0ae868f33731f90885a4946f47 (diff)
winaccessibility: replace mysterious and inexplicable locking strategy
Do the conservative thing and lock the SolarMutex at every UNO API entry point. Change-Id: I51afffada975df7ee3435784aa050a2c19cd0ac8
Diffstat (limited to 'winaccessibility/source/service/AccComponentEventListener.cxx')
-rw-r--r--winaccessibility/source/service/AccComponentEventListener.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/winaccessibility/source/service/AccComponentEventListener.cxx b/winaccessibility/source/service/AccComponentEventListener.cxx
index 5856f6c7b5e2..0374572c452c 100644
--- a/winaccessibility/source/service/AccComponentEventListener.cxx
+++ b/winaccessibility/source/service/AccComponentEventListener.cxx
@@ -23,6 +23,8 @@
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.hpp>
+#include <vcl/svapp.hxx>
+
#include "AccComponentEventListener.hxx"
#include "AccObjectManagerAgent.hxx"
#include "unomsaaevent.hxx"
@@ -47,6 +49,8 @@ AccComponentEventListener::~AccComponentEventListener()
void AccComponentEventListener::notifyEvent( const ::com::sun::star::accessibility::AccessibleEventObject& aEvent )
throw (::com::sun::star::uno::RuntimeException)
{
+ SolarMutexGuard g;
+
switch (aEvent.EventId)
{
case AccessibleEventId::VALUE_CHANGED: