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
Показать файл Открыть проект

Открытые методы

Метод Описание
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.