array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'thread.isstarted.php', 1 => 'Thread::isStarted', ), 'up' => array ( 0 => 'class.thread.php', 1 => 'Thread', ), 'prev' => array ( 0 => 'thread.isjoined.php', 1 => 'Thread::isJoined', ), 'next' => array ( 0 => 'thread.join.php', 1 => 'Thread::join', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/pthreads/thread/isstarted.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL pthreads >= 2.0.0)
Thread::isStarted — State Detection
Esta función no tiene parámetros.
Ejemplo #1 Tell if the referenced Thread was started
<?php
$worker = new Worker();
$worker->start();
var_dump($worker->isStarted());
?>
El resultado del ejemplo sería:
bool(true)