downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Worker::run> <Worker::isShutdown
[edit] Last updated: Sun, 19 May 2013

view this page in

Worker::isWorking

(PECL pthreads >= 0.37)

Worker::isWorkingDétection de statut

Description

final public boolean Worker::isWorking ( void )

Indique si le Worker exécute des Stackables ou non.

Liste de paramètres

Cette fonction ne contient aucun paramètre.

Valeurs de retour

Un booléen indiquant le statut de l'opération.

Exemples

Exemple #1 Détecte le statut d'un Worker

<?php
class My extends Worker {
    public function 
run() {
        
/* ... */
    
}
}
$my = new My();
$my->start();
/* ... */
if ($my->isWorking()) {
    
/* ... le Worker est en train d'exécuter un autre objet */
}
?>



add a note add a note User Contributed Notes Worker::isWorking - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites