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

search for in the

Thread::isTerminated> <Thread::isRunning
[edit] Last updated: Fri, 17 May 2013

view this page in

Thread::isStarted

(PECL pthreads >= 0.34)

Thread::isStartedState Detection

Beschreibung

final public boolean Thread::isStarted ( void )

Tell if the referenced Thread has been started

Parameter-Liste

Diese Funktion hat keine Parameter.

Rückgabewerte

A boolean indication of state

Beispiele

Beispiel #1 Detect the state of the referenced Thread

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

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

bool(true)



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

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