(PECL pthreads >= 2.0.0)
Thread::isJoined — Détection de statut
Cette fonction ne contient aucun paramètre.
Exemple #1 Détecte le statut du Thread référencé
<?php
class My extends Thread {
    public function run() {
        $this->synchronized(function($thread){
            if (!$thread->done)
                $thread->wait();
        }, $this);
    }
}
$my = new My();
$my->start();
var_dump($my->isJoined());
$my->synchronized(function($thread){
    $thread->done = true;
    $thread->notify();
}, $my);
?>L'exemple ci-dessus va afficher :
bool(false)
