Méthode | Description | |
---|---|---|
__construct ( NinjaMutex\Lock\LockInterface $ninjaMutexLock, null | integer $timeout = null ) | ||
acquireLock ( string $resourceName ) : boolean | ||
isLocked ( string $resourceName ) : boolean | ||
releaseLock ( string $resourceName ) : boolean |
public __construct ( NinjaMutex\Lock\LockInterface $ninjaMutexLock, null | integer $timeout = null ) | ||
$ninjaMutexLock | NinjaMutex\Lock\LockInterface | |
$timeout | null | integer | 1. null if you want blocking lock 2. 0 if you want just lock and go 3. $timeout > 0 if you want to wait for lock some time (in milliseconds) |
public acquireLock ( string $resourceName ) : boolean | ||
$resourceName | string | |
Résultat | boolean |
public releaseLock ( string $resourceName ) : boolean | ||
$resourceName | string | |
Résultat | boolean |