Thread::isStarted
(PECL pthreads >= 2.0.0)
Thread::isStarted — State Detection
Descripción
public boolean Thread::isStarted
( void
)
Tell if the referenced Thread was started
Parámetros
Esta función no tiene parámetros.
Valores devueltos
boolean indication of state
Ejemplos
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)