(PECL pthreads >= 0.0.33)
Thread::wait — Wait for Notification from the referenced Thread.
$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.