[CVS spice] Temporary sleep to wait for the notifyAll() in another thread to propogate to wait() in this thread

pdonald-yCVjj/[email protected] 12 May 2004 07:22:49 -0000
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
Commit in spice/sandbox/event/src/test/org/codehaus/spice/event/impl on MAIN

LockChecker.java +8 -1 1.1 -> 1.2

Temporary sleep to wait for the notifyAll() in another thread to propogate to wait() in this thread

----------

spice/sandbox/event/src/test/org/codehaus/spice/event/impl

LockChecker.java 1.1 -> 1.2

diff -u -r1.1 -r1.2
--- LockChecker.java 16 Dec 2003 02:03:12 -0000 1.1
+++ LockChecker.java 12 May 2004 07:22:48 -0000 1.2
@@ -2,7 +2,7 @@

/**
* @author Peter Donald

- * @version $Revision: 1.1 $ $Date: 2003/12/16 02:03:12 $

+ * @version $Revision: 1.2 $ $Date: 2004/05/12 07:22:48 $

*/
class LockChecker
implements Runnable

@@ -40,6 +40,13 @@

boolean isUnlocked()
{

+ try
+ {
+ Thread.sleep( 1 );
+ }
+ catch( InterruptedException e )
+ {
+ }

return _unlocked;
}
}

CVSspam 0.2.8