(PECL pthreads >= 0.0.33)
Mutex::lock — The lock purpose
$mutex
)Attempt to lock the Mutex for the caller.
An attempt to lock a Mutex owned (locked) by another Thread will result in blocking.
mutex
A handle returned by a previous call to Mutex::create().
A boolean indication of success.