PHP 5.4.31 Released

Worker::isWorking

(PECL pthreads >= 2.0.0)

Worker::isWorkingState Detection

Beschreibung

public boolean Worker::isWorking ( void )

Tell if a Worker is executing Stackables

Parameter-Liste

Diese Funktion hat keine Parameter.

R├╝ckgabewerte

A boolean indication of state

Beispiele

Beispiel #1 Detect the state of a Worker

<?php
$my 
= new Worker();
$my->start();
/* ... */
if ($my->isWorking()) {
    
/* ... the Worker is busy executing another object */
}
?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top