public class NotifyThread
extends java.lang.Thread
To use this to wake up any threads waiting on a lock, create a new instance of this class with a LinkedList of lock objects (or single lock) to call notifyAll() on.
| Yellow (mudit) |
| Green (mudit) |
| Constructor and Description |
|---|
NotifyThread(java.util.LinkedList locks)
Construct a thread to be used call notifyAll() on a set of locks.
|
NotifyThread(java.lang.Object lock)
Construct a thread to be used call notifyAll() on a set of locks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Call NotifyAll() on the lock object (or objects) passed to this
class in its constructor.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic NotifyThread(java.util.LinkedList locks)
locks - The set of locks to call notifyAll() on.public NotifyThread(java.lang.Object lock)
lock - The lock to call notifyAll() on.