jfig.utils
Class AntiDeadlock
java.lang.Object
jfig.utils.AntiDeadlock
- public class AntiDeadlock
- extends java.lang.Object
simple utility class to ease avoiding AWT deadlocks.
This class provides the utility methods sleep() and yield()
to allow easy access of the corresponding methods of java.lang.Thread,
while at the same time informing the reader that
an AWT deadlock is possible/probable near that part of the code which
uses these calls.
In a perfect world, classes like this should not be necessary :-(
Method Summary |
static void |
sleep(long millis)
utility wrapper for Thread.sleep() |
static void |
yield()
utility wrapper for Thread.yield() |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AntiDeadlock
public AntiDeadlock()
sleep
public static void sleep(long millis)
- utility wrapper for Thread.sleep()
yield
public static void yield()
- utility wrapper for Thread.yield()