|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectibis.satin.SatinObject
This is the magic class that should be extended by objects that invoke
spawnable methods. When the program is not rewritten by the Satin frontend,
the methods described here are basically no-ops, and the program will run
sequentially. When the program is rewritten by the Satin frontend, calls to
spawnable methods, and calls to sync()
and abort()
will be
rewritten.
Constructor Summary | |
SatinObject()
|
Method Summary | |
void |
abort()
Recursively aborts all methods that were spawned by the current method and all methods spawned by the aborted methods. |
static boolean |
localJob()
Returns whether the current Satin job was generated by the machine it is running on. |
static boolean |
needMoreJobs()
Returns whether it might be useful to spawn more Satin jobs. |
static void |
pause()
Pauses Satin operation. |
static void |
resume()
Resumes Satin operation. |
void |
sync()
Waits until all spawned methods in the current method are finished. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SatinObject()
Method Detail |
public void sync()
public void abort()
public static void pause()
public static void resume()
public static boolean needMoreJobs()
true
if it might be useful to spawn more
invocations, false if there is enough work in the system.public static boolean localJob()
true
if the current invocation is not stolen from
another processor.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |