2007-08-01 Li Yuan <li.yuan@sun.com>
authorliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 1 Aug 2007 09:51:36 +0000 (09:51 +0000)
committerliyuan <liyuan@e2bd861d-eb25-0410-b326-f6ed22b6b98c>
Wed, 1 Aug 2007 09:51:36 +0000 (09:51 +0000)
        * atk-bridge/bridge.c: (spi_atk_bridge_key_listener):
        Fix a potential dead-lock issue. Bug #462412.

git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@940 e2bd861d-eb25-0410-b326-f6ed22b6b98c

ChangeLog
atk-bridge/bridge.c

index c0f46ec..7391b3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-01  Li Yuan  <li.yuan@sun.com>
+
+       * atk-bridge/bridge.c: (spi_atk_bridge_key_listener):
+       Fix a potential dead-lock issue. Bug #462412.
+
 2007-07-09  Li Yuan <li.yuan@sun.com>
 
        * configure.in, README, NEWS:
index e0990ac..8497536 100644 (file)
@@ -1071,8 +1071,10 @@ spi_atk_bridge_key_listener (AtkKeyEventStruct *event, gpointer data)
 
   spi_init_keystroke_from_atk_key_event (&key_event, event);
 
+  bridge_threads_leave ();
   result = Accessibility_DeviceEventController_notifyListenersSync (
          spi_atk_bridget_get_dec (), &key_event, &ev);
+  bridge_threads_enter ();
 
   if (key_event.event_string) CORBA_free (key_event.event_string);