Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
malkusch
lock
mutex
SemaphoreMutex
PHP Class malkusch\lock\mutex\SemaphoreMutex
See link:
Donations
Author:
Markus Malkusch (
[email protected]
)
Inheritance:
extends
LockMutex
Exibir arquivo
Open project: malkusch/lock
Public Methods
Method
Description
__construct
(
$semaphore
)
Sets the semaphore id.
Protected Methods
Method
Description
lock
( )
unlock
( )
Method Details
__construct()
public
method
Use {@link sem_get()} to create the semaphore id. Example:
$semaphore = sem_get(ftok(__FILE__, "a")); $mutex = new SemaphoreMutex($semaphore);
public
__construct
(
$semaphore
)
lock()
protected
method
protected
lock
( )
unlock()
protected
method
protected
unlock
( )