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.
Показать файл
Открыть проект
Открытые методы
Метод |
Описание |
|
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()
публичный Метод
Gets the number of currently available locks.
getSize()
публичный Метод
Gets the total number of locks on the semaphore (not the number of available locks).