PdbMutex
in package
implements
MutexInterface
Table of Contents
Interfaces
- MutexInterface
- A locking mechanism.
Properties
- $autoRelease : bool
- $name : string
- $pdb : Pdb
- $releaseAllLocks : bool
- $uniqueLocks : bool
Methods
- __construct() : mixed
- __destruct() : mixed
- acquire() : bool
- Acquire the lock.
- release() : bool
- Release the lock.
Properties
$autoRelease
public
bool
$autoRelease
= true
$name
public
string
$name
$pdb
public
Pdb
$pdb
$releaseAllLocks
public
bool
$releaseAllLocks
= false
$uniqueLocks
public
bool
$uniqueLocks
= true
Methods
__construct()
public
__construct(Pdb $pdb, string $name) : mixed
Parameters
- $pdb : Pdb
- $name : string
__destruct()
public
__destruct() : mixed
Tags
acquire()
Acquire the lock.
public
acquire([float $timeout = 0 ]) : bool
Parameters
- $timeout : float = 0
-
in seconds
Tags
Return values
boolrelease()
Release the lock.
public
release() : bool