Thread::isJoined
Détection de statut
&reftitle.description;
public boolThread::isJoined
Indique si le Thread référencé a été joint.
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
&return.success;
&reftitle.examples;
Détecte le statut du Thread référencé
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);
?>
]]>
&example.outputs;