private void breakBarrier(){
  generation.broken=true;
  count=parties;
  trip.signalAll();
}

private void breakBarrier ( ) { generation . broken = true ; count = parties ; trip . signalAll ( ) ; }
sets current barrier generation as broken and wakes up everyone . called only while holding lock .
