public synchronized void resetTimeLimit(){
  if (customer == Thread.currentThread()) {
    doResetTimeLimit();
    notify();
  }
}

public synchronized void resetTimeLimit ( ) { if ( customer == Thread . currentThread ( ) ) { doResetTimeLimit ( ) ; notify ( ) ; } }
reset the time limit to 0 . only the thread who initiated the latest time limit can also take it back . if another thread tries to reset the time limit , it is ignored .
