Thread
PHP Manual

Thread::isStarted

(PECL pthreads >= 0.0.33)

Thread::isStartedTell if the referenced Thread has been started.

说明

final public boolean Thread::isStarted ( void )

A Thread does not begin executing until a call to Thread::start(). A Thread cannot be started twice with a call to Thread::start(). The programmer should take care to avoid potential programming errors by calling state detection methods before attempting synchronization with another Thread.

参数

此函数没有参数。

返回值

A boolean indication of state.


Thread
PHP Manual