PHP 클래스 Icicle\Concurrent\Sync\Lock

This object is not thread-safe; after acquiring a lock from a mutex or semaphore, the lock should reside in the same thread or process until it is released.
파일 보기 프로젝트 열기: icicleio/concurrent

공개 메소드들

메소드 설명
__construct ( callable $releaser ) Creates a new lock permit object.
__destruct ( ) Releases the lock when there are no more references to it.
isReleased ( ) : boolean Checks if the lock has already been released.
release ( ) Releases the lock.

메소드 상세

__construct() 공개 메소드

Creates a new lock permit object.
public __construct ( callable $releaser )
$releaser callable

__destruct() 공개 메소드

Releases the lock when there are no more references to it.
public __destruct ( )

isReleased() 공개 메소드

Checks if the lock has already been released.
public isReleased ( ) : boolean
리턴 boolean True if the lock has already been released, otherwise false.

release() 공개 메소드

Releases the lock.
public release ( )