public interface PhaserManager extends ActivityListeners.ActivityListener
Modifier and Type | Method and Description |
---|---|
void |
checkPhaserUse(InternalPhaser ph,
HjPhaserMode prm)
Validates the use of a phaser in the current context.
|
void |
doNext(HabaneroActivity activity)
Performs a next operation with the given activity.
|
void |
doSignal(HabaneroActivity activity,
boolean earlySignal)
Performs a phaser signal operation with the given activity.
|
void |
doSignal(HabaneroActivity activity,
InternalPhaser phaser,
boolean earlySignal,
boolean fromDrop)
Performs a signal operation with the given activity.
|
void |
doWait(HabaneroActivity activity)
Performs a phaser wait operation with the given activity.
|
void |
doWait(HabaneroActivity activity,
InternalPhaser phaser)
Performs a wait operation with the given activity.
|
boolean |
doWaitForNextSinglePhase1(HabaneroActivity activity,
InternalPhaser phaser,
String loc)
Performs the first stage wait operation with the given activity in next-with-signal mode.
|
void |
doWaitForNextSinglePhase2(HabaneroActivity activity,
InternalPhaser phaser)
Performs the second stage wait operation with the given activity in next-with-signal mode.
|
boolean |
dropPhaser(HabaneroActivity activity,
InternalPhaser phaser,
boolean activityEndSignal)
Drops the phaser registered with an activity.
|
int |
getSigPhase(HabaneroActivity activity,
InternalPhaser phaser)
getSigPhase.
|
int |
getWaitPhase(HabaneroActivity activity,
InternalPhaser phaser)
getWaitPhase.
|
void |
inheritPhasers(HabaneroActivity parentActivity,
HabaneroActivity childActivity)
Registers a phaser to the specified activity.
|
HjPhaserMode |
phaserMode(HabaneroActivity activity,
InternalPhaser phaser)
phaserMode.
|
void |
register(HabaneroActivity parentActivity,
HabaneroActivity childActivity,
InternalPhaser phaser,
HjPhaserMode phaserMode)
register.
|
boolean |
registered(HabaneroActivity activity,
InternalPhaser phaser)
registered.
|
void |
registerPhaserToIEF(HabaneroActivity activity,
InternalPhaser phaser)
Registers a phaser to the immediately enclosing finish defined by the activity.
|
boolean |
resumed(HabaneroActivity activity,
InternalPhaser phaser)
resumed.
|
onActivityDependenciesReady, onActivityEnd, onActivityResume, onActivitySpawn, onActivityStart, onActivitySuspend, onFinishScopeStart, onPhaserReady, onPostFinishScopeEnd, onPreFinishScopeEnd, updateActivityFromCompanion, updateCompanionFromActivity
void checkPhaserUse(InternalPhaser ph, HjPhaserMode prm)
ph
- The phaserprm
- The phaser modevoid inheritPhasers(HabaneroActivity parentActivity, HabaneroActivity childActivity)
parentActivity
- The activity to inherit phasers from.childActivity
- The new child activity.void register(HabaneroActivity parentActivity, HabaneroActivity childActivity, InternalPhaser phaser, HjPhaserMode phaserMode)
register.
parentActivity
- The activity to inherit phasers from.childActivity
- The new child activity.phaser
- The new phaser to inheritphaserMode
- The phaser registration modephaserMode
- The phaser registration modevoid registerPhaserToIEF(HabaneroActivity activity, InternalPhaser phaser)
activity
- The activity which determines the IEF.phaser
- The phaser to register to the IEF.boolean dropPhaser(HabaneroActivity activity, InternalPhaser phaser, boolean activityEndSignal)
activity
- The activity from which to drop the phaser.phaser
- The phaser to drop.activityEndSignal
- Whether the phaser is dropped in an activity end eventboolean registered(HabaneroActivity activity, InternalPhaser phaser)
registered.
activity
- The activity.phaser
- The phaser.boolean resumed(HabaneroActivity activity, InternalPhaser phaser)
resumed.
activity
- The activity.phaser
- The phaser.HjPhaserMode phaserMode(HabaneroActivity activity, InternalPhaser phaser)
phaserMode.
activity
- The activity.phaser
- The phaser.int getSigPhase(HabaneroActivity activity, InternalPhaser phaser)
getSigPhase.
activity
- The activity.phaser
- The phaser.int getWaitPhase(HabaneroActivity activity, InternalPhaser phaser)
getWaitPhase.
activity
- The activity.phaser
- The phaser.void doNext(HabaneroActivity activity) throws SuspendableException
activity
- The activity.SuspendableException
void doSignal(HabaneroActivity activity, boolean earlySignal)
activity
- The activity.earlySignal
- Flag determining whether this is an eager signalvoid doSignal(HabaneroActivity activity, InternalPhaser phaser, boolean earlySignal, boolean fromDrop)
activity
- The activity.phaser
- The phaser.earlySignal
- Flag determining whether this is an eager signalfromDrop
- Flag determining whether this signal came from a drop call (to prevent double signal logging)void doWait(HabaneroActivity activity) throws SuspendableException
activity
- The activity.SuspendableException
void doWait(HabaneroActivity activity, InternalPhaser phaser) throws SuspendableException
activity
- The activity.phaser
- The phaser.SuspendableException
boolean doWaitForNextSinglePhase1(HabaneroActivity activity, InternalPhaser phaser, String loc) throws SuspendableException
activity
- The activity.phaser
- The phaser.loc
- The location of the next operationSuspendableException
void doWaitForNextSinglePhase2(HabaneroActivity activity, InternalPhaser phaser) throws SuspendableException
activity
- The activity.phaser
- The phaser.SuspendableException
Copyright © 2015 Rice University - Department of Computer Science. All rights reserved.