PHP 클래스 Jenner\SimpleFork\Lock\FileLock

상속: implements Jenner\SimpleFork\Lock\LockInterface
파일 보기 프로젝트 열기: huyanping/simple-fork-php 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$file lock file
$fp resource
$locked boolean

공개 메소드들

메소드 설명
__destory ( )
acquire ( boolean $blocking = true ) : mixed get a lock
create ( string $file ) : FileLock create a file lock instance if the file is not exists, it will be created
isLocked ( ) : mixed is locked
release ( ) : mixed release lock

비공개 메소드들

메소드 설명
__construct ( $file )

메소드 상세

__destory() 공개 메소드

public __destory ( )

acquire() 공개 메소드

get a lock
public acquire ( boolean $blocking = true ) : mixed
$blocking boolean
리턴 mixed

create() 공개 정적인 메소드

create a file lock instance if the file is not exists, it will be created
public static create ( string $file ) : FileLock
$file string lock file
리턴 FileLock

isLocked() 공개 메소드

is locked
public isLocked ( ) : mixed
리턴 mixed

release() 공개 메소드

release lock
public release ( ) : mixed
리턴 mixed

프로퍼티 상세

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

lock file
protected $file

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

protected resource $fp
리턴 resource

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

protected bool $locked
리턴 boolean