Thread
PHP Manual

Thread::isBusy

(PECL pthreads >= 0.0.33)

Thread::isBusyTell if a Thread is busy executing

说明

final public boolean Thread::isBusy ( void )

Tell if the referenced Thread is busy executing. A call to Thread::join() on a busy Thread could result in significant blocking. A Thread being used as a Worker will always appear busy until a call to Thread::join() on the Worker is made.

参数

此函数没有参数。

返回值

A boolean indication of state.


Thread
PHP Manual