Thread::isStarted
(PECL pthreads >= 2.0.0)
Thread::isStarted — Détection de statut
Description
public boolean Thread::isStarted
( void
)
Indique si le Thread référencé a été démarré.
Liste de paramètres
Cette fonction ne contient aucun paramètre.
Valeurs de retour
Un booléen indiquant le statut de l'opération.
Exemples
Exemple #1 Indique si le Thread référencé a été démarré
<?php
$worker = new Worker();
$worker->start();
var_dump($worker->isStarted());
?>
L'exemple ci-dessus va afficher :
bool(true)