(PECL pthreads >= 2.0.0)
State Detection
public boolean Thread::isStarted ( void )
Tell if the referenced Thread was started
Returns:
boolean indication of state
Examples:
Tell if the referenced Thread was started
<?php $worker = new Worker(); $worker->start(); var_dump($worker->isStarted()); ?>
The above example will output:
bool(true)
Please login to continue.