PHP Class NinjaMutex\Lock\DirectoryLock

Author: Jan Voracek ([email protected])
Inheritance: extends NinjaMutex\Lock\LockAbstract
Afficher le fichier Open project: arvenil/ninja-mutex

Protected Properties

Свойство Type Description
$dirname

Méthodes publiques

Méthode Description
__construct ( string $dirname )
isLocked ( string $name ) : boolean Check if lock is locked
releaseLock ( string $name ) : boolean Release lock

Méthodes protégées

Méthode Description
getDirectoryPath ( string $name ) : string
getLock ( string $name, boolean $blocking ) : boolean

Method Details

__construct() public méthode

public __construct ( string $dirname )
$dirname string

getDirectoryPath() protected méthode

protected getDirectoryPath ( string $name ) : string
$name string
Résultat string

getLock() protected méthode

protected getLock ( string $name, boolean $blocking ) : boolean
$name string
$blocking boolean
Résultat boolean

isLocked() public méthode

Check if lock is locked
public isLocked ( string $name ) : boolean
$name string name of lock
Résultat boolean

releaseLock() public méthode

Release lock
public releaseLock ( string $name ) : boolean
$name string name of lock
Résultat boolean

Property Details

$dirname protected_oe property

protected $dirname