/** * Set the source. */ public void setSource(ITerminableIntermediateFuture<?> src) { assert this.src==null; this.src = src; doNotify(); }
/** * Possibly notify the termination source. */ protected void doNotify() { super.doNotify(); int mynotifycnt = 0; synchronized(this) { mynotifycnt = notifycnt; notifycnt = 0; } for(int i=0; i<mynotifycnt; i++) ((IPullIntermediateFuture<E>)src).pullIntermediateResult(); }