(PECL pthreads >= 2.0.0)
State Detection
public boolean Worker::isWorking ( void )
Tell if a Worker is executing Stackables
Returns:
A boolean indication of state
Examples:
Detect the state of a Worker
<?php $my = new Worker(); $my->start(); /* ... */ if ($my->isWorking()) { /* ... the Worker is busy executing another object */ } ?>
Please login to continue.