Method |
Description |
|
__clone ( ) |
Clones the semaphore, creating a new semaphore with the same size and permissions. |
|
__construct ( integer $maxLocks, integer $permissions = 384 ) |
Creates a new semaphore with a given number of locks. |
|
acquire ( ) : Generator |
|
|
count ( ) : integer |
|
|
free ( ) |
Removes the semaphore if it still exists. |
|
getPermissions ( ) : integer |
Gets the access permissions of the semaphore. |
|
getSize ( ) : integer |
Gets the maximum number of locks held by the semaphore. |
|
isFreed ( ) : boolean |
Checks if the semaphore has been freed. |
|
serialize ( ) : string |
Serializes the semaphore. |
|
setPermissions ( integer $mode ) |
Sets the access permissions of the semaphore. |
|
unserialize ( string $serialized ) |
Unserializes a serialized semaphore. |
|