Code example for Condition

Methods: signalAll

0
  public void update(Statistics.JobStats item) {
    //simply notify in case of serial submissions. We are just bothered 
    //if submitted job is completed or not. 
    lock.lock(); 
    try { 
      jobCompleted.signalAll();
    } finally { 
      lock.unlock(); 
    } 
  } 
 
  /** 
   * Start the reader thread, wait for latch if necessary. 
   */ 
  @Override 
  public void start() { 
    LOG.info(" Starting Serial submission ");
    this.rThread.start();
  } 
}