public class SynchronousSimpleTarget extends SynchronousTarget
setTarget.
When every task kinds are completed, the completedCallback Runnable is called
either from addJobDone() or from setTarget().
This is not really a barrier as defined in the list of synchronization methods...| Constructor and Description |
|---|
SynchronousSimpleTarget(java.lang.String name,
java.lang.Runnable completedCallback) |
| Modifier and Type | Method and Description |
|---|---|
int |
addDone(int nb)
Not protected to avoid contention.
|
int |
getCount() |
int |
getTarget() |
boolean |
isTargetKnown() |
protected boolean |
isVirgin() |
void |
setTarget(int target)
Use this if you want to set a fixed target for the given job kind.
|
call, getName, isDone, registerCompletedCallbackpublic SynchronousSimpleTarget(java.lang.String name,
java.lang.Runnable completedCallback)
protected boolean isVirgin()
isVirgin in class SynchronousTargetpublic int addDone(int nb)
public void setTarget(int target)
setTarget in class SynchronousTargetpublic int getCount()
public boolean isTargetKnown()
public int getTarget()