X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=src%2Forg%2Fxwt%2FThreadMessage.java;h=0eeefef2be93c2e29830a28366219575a69b1373;hb=81bb6c152f30f56b093cf0670cca3640a5c47ae2;hp=cfd6cb7d1262a600a04b41f63bdba3500bae388c;hpb=6440d675cc107ed11bef447596121ced4dcac189;p=org.ibex.core.git diff --git a/src/org/xwt/ThreadMessage.java b/src/org/xwt/ThreadMessage.java index cfd6cb7..0eeefef 100644 --- a/src/org/xwt/ThreadMessage.java +++ b/src/org/xwt/ThreadMessage.java @@ -17,8 +17,6 @@ import org.xwt.js.*; */ public class ThreadMessage extends Thread implements Message { - public static boolean fakeBackground = false; - private volatile static int threadcount = 0; /** the JavaScript function that we are executing */ @@ -55,7 +53,6 @@ public class ThreadMessage extends Thread implements Message { /** attempts to put this thread into the background to perform a blocking operation; returns false if unable to do so */ public static boolean suspendThread() { - if (fakeBackground) return true; // put ourselves in the background Thread thread = Thread.currentThread(); if (!(thread instanceof ThreadMessage)) { @@ -70,7 +67,6 @@ public class ThreadMessage extends Thread implements Message { /** re-enqueues this thread */ public static void resumeThread() { - if (fakeBackground) return; ThreadMessage mythread = (ThreadMessage)Thread.currentThread(); Message.Q.add(mythread); mythread.setPriority(Thread.NORM_PRIORITY);