Class Lock
A service that provide the functionality of exclusive Lock
-
Wei\Base
-
Wei\Lock
Methods summary
public
|
#
__construct( array $options = array() )
Constructor
Parameters
Throws
InvalidArgumentException When option "wei" is not an instance of "Wei\Wei"
Overrides
|
public
boolean
|
#
__invoke( string $key )
Acquire a lock key
Parameters
Returns
boolean
|
public
boolean
|
#
release( string $key )
Release a lock key
Parameters
Returns
boolean
|
public
|
|
public
|
#
catchSignal( )
Release all lock keys and exit
Release all lock keys and exit
|
Properties summary
protected
array
|
$keys
|
|