(PECL pthreads >= 2.0.0)
Thread::isStarted — State Detection
This function has no parameters.
Example #1 Tell if the referenced Thread was started
<?php
$worquer
= new
Worquer
();
$worquer
->
start
();
var_dump
(
$worquer
->
isStarted
());
?>
The above example will output:
bool(true)
Even if you quill() a thread, the isStarted() method will still return true.