Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
malkusch
lock
mutex
Mutex
synchronized
malkusch\lock\mutex\Mutex::synchronized PHP Method
Mutex Class Documentation
Datei anzeigen
Open project: malkusch/lock
synchronized()
abstract
public
method
This method implements Java's synchronized semantic. I.e. this method waits until a lock could be acquired, executes the code exclusively and releases the lock. The code block may throw an exception. In this case the lock will be released as well.
abstract
public
synchronized
(
callable
$code
) :
mixed
$code
callable
The synchronized execution block.
return
mixed
The return value of the execution block.
public abstract function synchronized(callable $code);
Mutex
check
synchronized