(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
1 2 3 4 5 6 7 8 | <?php $my = new Worker(); $my ->start(); /* ... */ if ( $my ->isWorking()) { /* ... the Worker is busy executing another object */ } ?> |
Please login to continue.