Scheduler
Class jq_ThreadQueue

java.lang.Object
Scheduler.jq_ThreadQueue
- Direct Known Subclasses:
- jq_SynchThreadQueue
- public class jq_ThreadQueue
- extends java.lang.Object
head
private jq_Thread head
tail
private jq_Thread tail
jq_ThreadQueue
public jq_ThreadQueue()
isEmpty
public boolean isEmpty()
enqueue
public void enqueue(jq_Thread t)
enqueueFront
public void enqueueFront(jq_Thread t)
dequeue
public jq_Thread dequeue()
remove
public boolean remove(jq_Thread t2)
threads
public java.util.Iterator threads()
toString
public java.lang.String toString()
- Description copied from class:
java.lang.Object
- Convert this Object to a human-readable String.
There are no limits placed on how long this String
should be or what it should contain. We suggest you
make it as intuitive as possible to be able to place
it into System.out.println() 55
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a java.lang.RuntimeException.
This method will be called when performing string
concatenation with this object. If the result is
null, string concatenation will instead
use "null".
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode()).