Branch: refs/heads/master
Home: https://github.com/ibus/ibus
Commit: 31b3b6a9577bb4c2787c73675f53ba38647a1501
https://github.com/ibus/ibus/commit/31b3b6a9577bb4c2787c73675f53ba38647a1501
Author: Peng Huang <[email protected]>
Date: 2011-02-28 (Mon, 28 Feb 2011)
Changed paths:
M bus/ibusimpl.c
M ibus/bus.py
M ibus/interface/iibus.py
Log Message:
-----------
Fix a race problem in SetGlobalEngine and add set_global_engine in python
library
The race problem:
1. global engine == A
2. call SetGlobalEngine(B) asynchronously
3. call SetGlobalEngine(A) immediately
3.1 Because step 2 is not finished, so the global engine is still A,
and SetGlobalEngine(A) returns sucessfully.
4. SetGlobalEngine(B) is completed and the global engine becomes B
BUG=http://crosbug.com/12414
TEST=Linux desktop
Review URL: http://codereview.appspot.com/4250041
--
You received this message because you are subscribed to the Google
Groups "ibus-devel" group.
iBus project web page: http://code.google.com/p/ibus/
iBus dev group: http://groups.google.com/group/ibus-devel?hl=en