(PECL pthreads >= 0.34)
Thread::wait — Synchronization
$timeout
Will cause the calling Thread to wait for notification from the referenced Thread
timeout
An optional timeout in millionths of a second
A boolean indication of success