|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jikesrvm.scheduler.greenthreads.AbstractThreadQueue
org.jikesrvm.scheduler.greenthreads.ThreadProxyWaitingQueue
public final class ThreadProxyWaitingQueue
See Proxy
| Field Summary | |
|---|---|
private ThreadProxy |
head
The head of the list of waiting proxies |
private ThreadProxy |
tail
The end of the list of waiting proxies |
| Constructor Summary | |
|---|---|
ThreadProxyWaitingQueue()
|
|
| Method Summary | |
|---|---|
(package private) boolean |
contains(RVMThread t)
|
GreenThread |
dequeue()
Remove thread from head of queue. |
(package private) void |
dump()
|
void |
enqueue(GreenThread t)
Put proxy for this thread on the queue. |
void |
enqueue(ThreadProxy p)
Add the proxy for a thread to tail of queue. |
boolean |
isEmpty()
Are any proxies on the queue? |
int |
length()
Number of items on queue (an estimate: queue is not locked during the scan). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ThreadProxy tail
private ThreadProxy head
| Constructor Detail |
|---|
public ThreadProxyWaitingQueue()
| Method Detail |
|---|
public boolean isEmpty()
isEmpty in class AbstractThreadQueuepublic void enqueue(GreenThread t)
enqueue in class AbstractThreadQueuepublic void enqueue(ThreadProxy p)
public GreenThread dequeue()
dequeue in class AbstractThreadQueuepublic int length()
length in class AbstractThreadQueueboolean contains(RVMThread t)
void dump()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||