Mutex::lockAcquire Mutex Description
final
public
static
boolean
Mutex::lock
(
long
$mutex
)Attempt to lock the Mutex for the caller. An attempt to lock a Mutex owned (locked) by another Thread will result in blocking. Parameters
Return ValuesA boolean indication of success. Return ValuesA newly created and optionally locked Mutex handle Examples
Example #1 Mutex Locking and Unlocking
<?php The above example will output: bool(true) bool(true) |