MediaWiki  REL1_19
LockHolder Class Reference

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

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

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

Detailed Description

LockServerDaemon helper class that keeps track of the locks.

Definition at line 443 of file LockServerDaemon.php.


Constructor & Destructor Documentation

LockHolder::__construct ( maxLocks)

$maxLocks integer Maximum number of locks to allow

Definition at line 460 of file LockServerDaemon.php.

References $maxLocks.


Member Function Documentation

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

Definition at line 479 of file LockServerDaemon.php.

References set_ex_lock(), and set_sh_lock().

Here is the call graph for this function:

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

Definition at line 543 of file LockServerDaemon.php.

References unset_ex_lock(), and unset_sh_lock().

Here is the call graph for this function:

Parameters:
$sessionstring
Returns:
bool

Definition at line 468 of file LockServerDaemon.php.

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

Definition at line 575 of file LockServerDaemon.php.

Referenced by lock().

Here is the caller graph for this function:

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

Definition at line 562 of file LockServerDaemon.php.

Referenced by lock().

Here is the caller graph for this function:

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

Definition at line 524 of file LockServerDaemon.php.

References unset_ex_lock(), and unset_sh_lock().

Here is the call graph for this function:

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

Definition at line 607 of file LockServerDaemon.php.

Referenced by release(), and unlock().

Here is the caller graph for this function:

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

Definition at line 588 of file LockServerDaemon.php.

Referenced by release(), and unlock().

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 447 of file LockServerDaemon.php.

LockHolder::$lockCount = 0 [protected]

Definition at line 453 of file LockServerDaemon.php.

LockHolder::$maxLocks [protected]

Definition at line 455 of file LockServerDaemon.php.

Referenced by __construct().

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

Definition at line 452 of file LockServerDaemon.php.

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

Definition at line 450 of file LockServerDaemon.php.

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

Definition at line 445 of file LockServerDaemon.php.


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