|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object orc.runtime.regions.Region
public class Region
Regions are used to track when some (sub-)computation terminates and/or becomes quiescent.
Currently the region methods must be synchronized, because tokens can be killed by independent threads (such as site calls in progress), triggering an update on the region. Maybe we should have a separate queue deal with dead tokens so this isn't necessary.
Constructor Summary | |
---|---|
Region()
|
Method Summary | |
---|---|
protected void |
activate()
Called when this region becomes not quiescent. |
void |
add(Region r)
Add an inactive region. |
void |
add(Token t)
Add an active token. |
void |
addActive()
Add an active token. |
void |
close()
Close the region. |
protected void |
deactivate()
Called when this region becomes quiescent. |
protected void |
maybeDeactivate()
Called when this region might become quiescent. |
protected void |
onClose()
Override this in subclasses to handle the closing of the region. |
void |
putContainedTokens(java.util.Set<Token> acc)
|
void |
remove(Region r)
Remove an inactive region. |
void |
remove(Token closer)
Remove an active token. |
void |
removeActive()
Remove an active token. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Region()
Method Detail |
---|
public final void add(Token t)
public final void add(Region r)
public final void remove(Token closer)
public final void remove(Region r)
public final void close()
protected void onClose()
public final void putContainedTokens(java.util.Set<Token> acc)
protected void deactivate()
protected void activate()
protected void maybeDeactivate()
deactivate()
if so. This will never
be called if the region has already closed.
public final void addActive()
removeActive()
.
public void removeActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |