|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jikesrvm.scheduler.RVMThread.BlockAdapter
public abstract static class RVMThread.BlockAdapter
A block adapter specifies the reason for blocking or unblocking a thread. A thread remains blocked so long as any of the block adapters say that it should be blocked. Block adapters are statically allocated, and store their state in instance fields of RVMThread.
Constructor Summary | |
---|---|
RVMThread.BlockAdapter()
|
Method Summary | |
---|---|
(package private) abstract void |
clearBlockRequest(RVMThread t)
Clear any blocking requests. |
(package private) abstract boolean |
hasBlockRequest(RVMThread t)
Does the thread have a request to block for this block adapter? |
(package private) abstract boolean |
hasBlockRequest(RVMThread t,
int token)
Does the thread have a request to block associated with the given requestBlock() call? |
(package private) abstract boolean |
isBlocked(RVMThread t)
Should the given thread be blocked for this block adapter? |
(package private) abstract int |
requestBlock(RVMThread t)
Request that the thread block, for this block adapter, at its earliest convenience. |
(package private) abstract void |
setBlocked(RVMThread t,
boolean value)
Specify that the thread is either blocked (value == true) or not blocked (value == false) for this block adapter. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RVMThread.BlockAdapter()
Method Detail |
---|
abstract boolean isBlocked(RVMThread t)
abstract void setBlocked(RVMThread t, boolean value)
abstract int requestBlock(RVMThread t)
abstract boolean hasBlockRequest(RVMThread t)
abstract boolean hasBlockRequest(RVMThread t, int token)
abstract void clearBlockRequest(RVMThread t)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |