Thread::join PHP Method

join() public method

Causes the calling context to wait for the referenced Thread to finish executing
public join ( ) : boolean
return boolean A boolean indication of state
    public function join()
    {
    }

Usage Example

コード例 #1
0
ファイル: ThreadTest.php プロジェクト: stof/pthreads-polyfill
 /**
  * @expectedException RuntimeException
  */
 public function testThreadAlreadyJoined()
 {
     $thread = new Thread();
     $this->assertEquals($thread->start(), true);
     $this->assertEquals($thread->join(), true);
     $this->assertEquals($thread->join(), false);
 }
All Usage Examples Of Thread::join