fix bug: qemu crash when entering lock mode (TC-286) 23/23723/1
authorTina Zhang <tina.zhang@intel.com>
Wed, 2 Jul 2014 06:41:36 +0000 (14:41 +0800)
committerTina Zhang <tina.zhang@intel.com>
Wed, 2 Jul 2014 07:18:08 +0000 (15:18 +0800)
When qemu is entering lock mode, it's better to use asyncExec to run the
runnable. Because it won't block the whole process to communicate with the
emulator process. If the communication is blocked, the qemu will crash.

Change-Id: Ifeaab44cf89d8a847b2237e59413c2445d419535
Signed-off-by: Tina Zhang <tina.zhang@intel.com>
tizen/src/skin/client/src/org/tizen/emulator/skin/EmulatorShmSkin.java

index 72a9786da01c5e39b9c9ec6cf1c130f420ae870e..e7e42687cf67b0d8f82217f1307f94861f1b18e0 100644 (file)
@@ -408,7 +408,7 @@ public class EmulatorShmSkin extends EmulatorSkin {
 
        @Override
        public void setCoverImage(final Image image) {
-               Display.getDefault().syncExec(new Runnable() {
+               Display.getDefault().asyncExec(new Runnable() {
                        @Override
                        public void run() {
                                imageCover = image;