src/ConcurrentPhpUtils/CyclicBarrier.php
public function nextGeneration()
    {
        // signal completion of last generation
        Cond::broadcast($this->cond);

        // set up next generation
        $this->count = $this->parties;
        $this->generation = new Generation();
    }
public function nextGeneration()
    {
        // signal completion of last generation
        Cond::broadcast($this->cond);

        // set up next generation
        $this->count = $this->parties;
        $this->generation = new Generation();
    }
public function nextGeneration ( ) { // signal completion of last generation Cond :: broadcast ( $ this -> cond ) ; // set up next generation $ this -> count = $ this -> parties ; $ this -> generation = new Generation ( ) ; }
Updates state on barrier trip and wakes up everyone.
Called only while holding lock.

@return void
@visibility private
Updates state on barrier trip and wakes up everyone . Called only while holding lock .