Thread
PHP Manual

Thread::wait

(PECL pthreads >= 0.0.33)

Thread::waitWait for Notification from the referenced Thread.

说明

final public boolean Thread::wait ([ long $timeout ] )

Causes the calling thread to block and wait for a call to Thread::notify() on the referenced Thread. A reached timeout is regarded as failure. A call to Thread::wait() will always result in blocking. The programmer should use state detection methods to avoid programming errors when using synchronization methods, Thread::wait(), and Thread::notify().

参数

timeout

An optional timeout in microseconds ( millionths of a second ).

返回值

A boolean indication of success.


Thread
PHP Manual