for (SubTask meu : Tasks.getSubTasksOf(item.task)) { Object c = Tasks.getSameNodeConstraintOf(meu); if (c==null) c = new Object();
for (SubTask meu : Tasks.getSubTasksOf(item.task)) { Object c = Tasks.getSameNodeConstraintOf(meu); if (c==null) c = new Object();
for (SubTask meu : Tasks.getSubTasksOf(item.task)) { Object c = Tasks.getSameNodeConstraintOf(meu); if (c==null) c = new Object();
public WorkUnitContext(BuildableItem item) { this.item = item; this.task = item.task; this.future = (FutureImpl)item.getFuture(); this.actions = item.getActions(); // +1 for the main task int workUnitSize = Tasks.getSubTasksOf(task).size(); startLatch = new Latch(workUnitSize) { @Override protected void onCriteriaMet() { // on behalf of the member Executors, // the one that executes the main thing will send notifications Executor e = Executor.currentExecutor(); if (e.getCurrentWorkUnit().isMainWork()) { e.getOwner().taskAccepted(e,task); } } }; endLatch = new Latch(workUnitSize); }
public WorkUnitContext(BuildableItem item) { this.item = item; this.task = item.task; this.future = (FutureImpl) item.getFuture(); this.actions = item.getActions(); // +1 for the main task int workUnitSize = Tasks.getSubTasksOf(task).size(); startLatch = new Latch(workUnitSize) { @Override protected void onCriteriaMet() { // on behalf of the member Executors, // the one that executes the main thing will send notifications Executor e = Executor.currentExecutor(); if (e.getCurrentWorkUnit().isMainWork()) { e.getOwner().taskAccepted(e, task); } } }; endLatch = new Latch(workUnitSize); }
public WorkUnitContext(BuildableItem item) { this.item = item; this.task = item.task; this.future = (FutureImpl)item.getFuture(); this.actions = item.getActions(); // +1 for the main task int workUnitSize = Tasks.getSubTasksOf(task).size(); startLatch = new Latch(workUnitSize) { @Override protected void onCriteriaMet() { // on behalf of the member Executors, // the one that executes the main thing will send notifications Executor e = Executor.currentExecutor(); if (e.getCurrentWorkUnit().isMainWork()) { e.getOwner().taskAccepted(e,task); } } }; endLatch = new Latch(workUnitSize); }
public WorkUnitContext(BuildableItem item) { this.item = item; this.task = item.task; this.future = (FutureImpl)item.getFuture(); this.actions = item.getActions(); // +1 for the main task int workUnitSize = Tasks.getSubTasksOf(task).size(); startLatch = new Latch(workUnitSize) { @Override protected void onCriteriaMet() { // on behalf of the member Executors, // the one that executes the main thing will send notifications Executor e = Executor.currentExecutor(); if (e.getCurrentWorkUnit().isMainWork()) { e.getOwner().taskAccepted(e,task); } } }; endLatch = new Latch(workUnitSize); }
for (SubTask meu : Tasks.getSubTasksOf(item.task)) { Object c = Tasks.getSameNodeConstraintOf(meu); if (c == null) {