PHP 인터페이스 Icicle\Concurrent\Sync\Semaphore

Objects that implement this interface should guarantee that all operations are atomic. Implementations do not have to guarantee that acquiring a lock is first-come, first serve.
상속: extends Countable
파일 보기 프로젝트 열기: icicleio/concurrent

공개 메소드들

메소드 설명
acquire ( ) : Generator
count ( ) : integer Gets the number of currently available locks.
getSize ( ) : integer Gets the total number of locks on the semaphore (not the number of available locks).

메소드 상세

acquire() 공개 메소드

public acquire ( ) : Generator
리턴 Generator Resolves with a lock object when the acquire is successful.

count() 공개 메소드

Gets the number of currently available locks.
public count ( ) : integer
리턴 integer The number of available locks.

getSize() 공개 메소드

Gets the total number of locks on the semaphore (not the number of available locks).
public getSize ( ) : integer
리턴 integer The total number of locks.