Code example for CyclicBarrier

0
	private CyclicBarrier _barrier = null;
	private long _systemTicks;
	 
	public void startClock() 
	{ 
		_barrier = new CyclicBarrier(_cntClocks);
		_tickScales.init();
		_systemTicks = 0;
	} 
 
	@Override 
	public ClockHandle acquireHandle() 
	{ 
		if (_barrier != null)
			return null; 
		return new BarrierClockHandle(this, ++_cntClocks);
	} 
 
	@Override 
	public void releaseHandle(ClockHandle handle)
	{