Thread::isStarted

(PECL pthreads >= 2.0.0)
State Detection
public boolean Thread::isStarted ( void )

Tell if the referenced Thread was started

Returns:

boolean indication of state

Examples:
Tell if the referenced Thread was started
<?php
$worker = new Worker();
$worker->start();
var_dump($worker->isStarted());
?>

The above example will output:

bool(true)
doc_php
2016-02-24 16:05:26
Comments
Leave a Comment

Please login to continue.