(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
1 2 3 4 5 | <?php $worker = new Worker(); $worker ->start(); var_dump( $worker ->isStarted()); ?> |
The above example will output:
bool(true)
Please login to continue.