Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
yii
mutex
Mutex
acquireLock
yii\mutex\Mutex::acquireLock PHP Method
Mutex Class Documentation
Show file
Open project: yiisoft/yii2
acquireLock()
abstract
protected
method
This method should be extended by a concrete Mutex implementations. Acquires lock by name.
abstract
protected
acquireLock
(
string
$name
,
integer
$timeout
) :
boolean
$name
string
of the lock to be acquired.
$timeout
integer
time to wait for the lock to be released.
return
boolean
acquiring result.
protected abstract function acquireLock($name, $timeout = 0);
Mutex
acquire
acquireLock
init
release
releaseLock