PHP Interface 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.
Mostrar archivo
Open project: icicleio/concurrent
Public Methods
Method |
Description |
|
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). |
|
Method Details
Gets the number of currently available locks.
Gets the total number of locks on the semaphore (not the number of available locks).