public boolean isBroken(){
  final ReentrantLock lock=this.lock;
  lock.lock();
  try {
    return generation.broken;
  }
  finally {
    lock.unlock();
  }
}

public boolean isBroken ( ) { final ReentrantLock lock = this . lock ; lock . lock ( ) ; try { return generation . broken ; } finally { lock . unlock ( ) ; } }
queries if this barrier is in a broken state .
