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

search for in the

Worker::isWorking> <Worker::getThreadId
[edit] Last updated: Fri, 24 May 2013

view this page in

Worker::isShutdown

(PECL pthreads >= 0.37)

Worker::isShutdownState Detection

Descripción

final public boolean Worker::isShutdown ( void )

Tell if the referenced Worker has been shutdown

Parámetros

Esta función no tiene parámetros.

Valores devueltos

A boolean indication of state

Ejemplos

Ejemplo #1 Detect the state of a Worker

<?php
class My extends Worker {
    public function 
run() {
        
/* ... */
    
}
}
$my = new My();
$my->start();
var_dump($my->isShutdown());
$my->shutdown();
var_dump($my->isShutdown());
?>

El resultado del ejemplo sería:

bool(false)
bool(true)



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

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