acquire() public method
Acquires a lock by name.
public boolean acquire ( $name, $timeout = 0 ) | ||
---|---|---|
$name | string |
Of the lock to be acquired. Must be unique. |
$timeout | integer |
Time to wait for lock to be released. Defaults to zero meaning that method will return false immediately in case lock was already acquired. |
return | boolean |
Lock acquiring result. |
Please login to continue.