MediaWiki  REL1_22
LockHolder Class Reference

LockServerDaemon helper class that keeps track of the locks. More...

Collaboration diagram for LockHolder:

List of all members.

Public Member Functions

 __construct ($maxLocks)
 $maxLocks integer Maximum number of locks to allow
 lock ($session, $type, array $keys)
 release ($session)
 sessionHasLocks ($session)
 unlock ($session, $type, array $keys)

Protected Member Functions

 set_ex_lock ($key, $session)
 set_sh_lock ($key, $session)
 unset_ex_lock ($key, $session)
 unset_sh_lock ($key, $session)

Protected Attributes

Array $exLocks = array()
 *
 $lockCount = 0
 $maxLocks
Array $sessionIndexEx = array()
 *
Array $sessionIndexSh = array()
 *
Array $shLocks = array()
 *

Detailed Description

LockServerDaemon helper class that keeps track of the locks.

Definition at line 459 of file LockServerDaemon.php.


Constructor & Destructor Documentation

LockHolder::__construct ( maxLocks)

$maxLocks integer Maximum number of locks to allow

Definition at line 472 of file LockServerDaemon.php.


Member Function Documentation

LockHolder::lock ( session,
type,
array keys 
)
Parameters:
$sessionstring
$typestring
$keysArray
Returns:
string

Definition at line 491 of file LockServerDaemon.php.

LockHolder::release ( session)
Parameters:
$sessionstring
Returns:
string

Definition at line 555 of file LockServerDaemon.php.

Parameters:
$sessionstring
Returns:
bool

Definition at line 480 of file LockServerDaemon.php.

LockHolder::set_ex_lock ( key,
session 
) [protected]
Parameters:
$keystring
$sessionstring
Returns:
void

Definition at line 587 of file LockServerDaemon.php.

LockHolder::set_sh_lock ( key,
session 
) [protected]
Parameters:
$keystring
$sessionstring
Returns:
void

Definition at line 574 of file LockServerDaemon.php.

LockHolder::unlock ( session,
type,
array keys 
)
Parameters:
$sessionstring
$typestring
$keysArray
Returns:
string

Definition at line 536 of file LockServerDaemon.php.

LockHolder::unset_ex_lock ( key,
session 
) [protected]
Parameters:
$keystring
$sessionstring
Returns:
void

Definition at line 619 of file LockServerDaemon.php.

LockHolder::unset_sh_lock ( key,
session 
) [protected]
Parameters:
$keystring
$sessionstring
Returns:
void

Definition at line 600 of file LockServerDaemon.php.


Member Data Documentation

Array LockHolder::$exLocks = array() [protected]

*

Definition at line 461 of file LockServerDaemon.php.

LockHolder::$lockCount = 0 [protected]

Definition at line 465 of file LockServerDaemon.php.

LockHolder::$maxLocks [protected]

Definition at line 467 of file LockServerDaemon.php.

Array LockHolder::$sessionIndexEx = array() [protected]

*

Definition at line 464 of file LockServerDaemon.php.

Array LockHolder::$sessionIndexSh = array() [protected]

*

Definition at line 463 of file LockServerDaemon.php.

Array LockHolder::$shLocks = array() [protected]

*

Definition at line 460 of file LockServerDaemon.php.


The documentation for this class was generated from the following file: