Method | Description | |
---|---|---|
__destruct ( ) | release lock | |
acquire ( boolean $blocking = true ) : boolean | get a lock | |
create ( $key ) : |
create a lock instance | |
isLocked ( ) : boolean | is locked | |
release ( ) : boolean | release lock |
Method | Description | |
---|---|---|
_stringToSemKey ( $identifier ) : integer | Semaphore requires a numeric value as the key |
Method | Description | |
---|---|---|
__construct ( $key, $count = 1 ) | init a lock |
protected _stringToSemKey ( $identifier ) : integer | ||
$identifier | ||
return | integer |
public static create ( $key ) : |
||
$key | ||
return |