PHP 클래스 NinjaMutex\Lock\FlockLock

저자: Kamil Dziedzic ([email protected])
상속: extends NinjaMutex\Lock\LockAbstract
파일 보기 프로젝트 열기: arvenil/ninja-mutex 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$dirname
$files

공개 메소드들

메소드 설명
__clone ( )
__construct ( string $dirname )
__destruct ( ) Try to release any obtained locks when object is destroyed
isLocked ( string $name ) : boolean Check if lock is locked
releaseLock ( string $name ) : boolean Release lock

보호된 메소드들

메소드 설명
getFilePath ( string $name ) : string
getLock ( string $name, boolean $blocking ) : boolean
setupFileHandle ( string $name ) : boolean

메소드 상세

__clone() 공개 메소드

public __clone ( )

__construct() 공개 메소드

public __construct ( string $dirname )
$dirname string

__destruct() 공개 메소드

This is a safe guard for cases when your php script dies unexpectedly. It's not guaranteed it will work either. You should not depend on __destruct() to release your locks, instead release them with $released = $this->releaseLock()A and check $released if lock was properly released
public __destruct ( )

getFilePath() 보호된 메소드

protected getFilePath ( string $name ) : string
$name string
리턴 string

getLock() 보호된 메소드

protected getLock ( string $name, boolean $blocking ) : boolean
$name string
$blocking boolean
리턴 boolean

isLocked() 공개 메소드

Check if lock is locked
public isLocked ( string $name ) : boolean
$name string name of lock
리턴 boolean

releaseLock() 공개 메소드

Release lock
public releaseLock ( string $name ) : boolean
$name string name of lock
리턴 boolean

setupFileHandle() 보호된 메소드

protected setupFileHandle ( string $name ) : boolean
$name string
리턴 boolean

프로퍼티 상세

$dirname 보호되어 있는 프로퍼티

protected $dirname

$files 보호되어 있는 프로퍼티

protected $files