PHP Class Metabor\Semaphore\LockAdapterMutex

Inheritance: implements MetaborStd\Semaphore\MutexInterface
显示文件 Open project: metabor/statemachine

Public Methods

Method Description
__construct ( MetaborStd\Semaphore\LockAdapterInterface $lockAdapter, string $resourceName )
__destruct ( ) release lock if mutex instance is destroyed.
acquireLock ( )
isAcquired ( )
isLocked ( )
releaseLock ( )

Method Details

__construct() public method

public __construct ( MetaborStd\Semaphore\LockAdapterInterface $lockAdapter, string $resourceName )
$lockAdapter MetaborStd\Semaphore\LockAdapterInterface
$resourceName string

__destruct() public method

release lock if mutex instance is destroyed.
public __destruct ( )

acquireLock() public method

See also: MetaborStd\Semaphore\MutexInterface::acquireLock()
public acquireLock ( )

isAcquired() public method

See also: MetaborStd\Semaphore\MutexInterface::isAcquired()
public isAcquired ( )

isLocked() public method

See also: MetaborStd\Semaphore\MutexInterface::isLocked()
public isLocked ( )

releaseLock() public method

See also: MetaborStd\Semaphore\MutexInterface::releaseLock()
public releaseLock ( )