PHP Class Jamm\Memory\Shm\MultiAccess

Inheritance: implements Jamm\Memory\Shm\IMutex
Afficher le fichier Open project: jamm/memory

Protected Properties

Свойство Type Description
$err_log
$max_wait_time
$mutex_acquired
$read_q
$read_q_key
$readers_count
$write_q
$write_q_key
$writers_count
$writers_mutex
$writers_mutex_key

Méthodes publiques

Méthode Description
__construct ( $id = '' )
__destruct ( )
getErrLog ( )
getReadQKey ( )
getWriteQKey ( )
get_access_read ( &$auto_unlocker_reference )
get_access_write ( &$auto_unlocker_reference )
get_counter ( $type = self::writers )
release_access_read ( Jamm\Memory\IKeyLocker $autoUnlocker = NULL )
release_access_write ( Jamm\Memory\IKeyLocker $autoUnlocker = NULL )
setMaxWaitTime ( $max_wait_time )

Méthodes protégées

Méthode Description
acquire_writers_mutex ( ) : boolean Returned value of this function should not be ignored.
clean_queue ( $type = self::writers )
decrement ( $type = self::readers )
increment ( $type = self::readers )
release_writers_mutex ( )
select_q ( $type )
wait ( integer $type = self::writers ) : boolean Wait for queue. If this function has returned 'false', access should not be granted.

Method Details

__construct() public méthode

public __construct ( $id = '' )

__destruct() public méthode

public __destruct ( )

acquire_writers_mutex() protected méthode

'False' means that access should not be granted.
protected acquire_writers_mutex ( ) : boolean
Résultat boolean

clean_queue() protected méthode

protected clean_queue ( $type = self::writers )

decrement() protected méthode

protected decrement ( $type = self::readers )

getErrLog() public méthode

public getErrLog ( )

getReadQKey() public méthode

public getReadQKey ( )

getWriteQKey() public méthode

public getWriteQKey ( )

get_access_read() public méthode

public get_access_read ( &$auto_unlocker_reference )

get_access_write() public méthode

public get_access_write ( &$auto_unlocker_reference )

get_counter() public méthode

public get_counter ( $type = self::writers )

increment() protected méthode

protected increment ( $type = self::readers )

release_access_read() public méthode

public release_access_read ( Jamm\Memory\IKeyLocker $autoUnlocker = NULL )
$autoUnlocker Jamm\Memory\IKeyLocker

release_access_write() public méthode

public release_access_write ( Jamm\Memory\IKeyLocker $autoUnlocker = NULL )
$autoUnlocker Jamm\Memory\IKeyLocker

release_writers_mutex() protected méthode

protected release_writers_mutex ( )

select_q() protected méthode

protected select_q ( $type )

setMaxWaitTime() public méthode

public setMaxWaitTime ( $max_wait_time )

wait() protected méthode

Wait for queue. If this function has returned 'false', access should not be granted.
protected wait ( integer $type = self::writers ) : boolean
$type integer
Résultat boolean

Property Details

$err_log protected_oe property

protected $err_log

$max_wait_time protected_oe property

protected $max_wait_time

$mutex_acquired protected_oe property

protected $mutex_acquired

$read_q protected_oe property

protected $read_q

$read_q_key protected_oe property

protected $read_q_key

$readers_count protected_oe property

protected $readers_count

$write_q protected_oe property

protected $write_q

$write_q_key protected_oe property

protected $write_q_key

$writers_count protected_oe property

protected $writers_count

$writers_mutex protected_oe property

protected $writers_mutex

$writers_mutex_key protected_oe property

protected $writers_mutex_key