diff options
author | Michael Stahl <mstahl@redhat.com> | 2013-11-19 20:12:23 +0100 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2013-11-20 01:33:42 +0100 |
commit | 3e1c7d12eeefdfc50b842fe34f3db657292359b9 (patch) | |
tree | ede628029df8a2a9aba9eece4f6876a6ffc2b371 /winaccessibility/source/service/AccComponentEventListener.cxx | |
parent | ed750424f7c02b0ae868f33731f90885a4946f47 (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.cxx | 4 |
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: |