MediaWiki
REL1_19
|
LockServerDaemon helper class that keeps track of the locks. More...
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() |
LockServerDaemon helper class that keeps track of the locks.
Definition at line 443 of file LockServerDaemon.php.
LockHolder::__construct | ( | $ | maxLocks | ) |
$maxLocks integer Maximum number of locks to allow
Definition at line 460 of file LockServerDaemon.php.
References $maxLocks.
LockHolder::lock | ( | $ | session, |
$ | type, | ||
array $ | keys | ||
) |
$session | string |
$type | string |
$keys | Array |
Definition at line 479 of file LockServerDaemon.php.
References set_ex_lock(), and set_sh_lock().
LockHolder::release | ( | $ | session | ) |
$session | string |
Definition at line 543 of file LockServerDaemon.php.
References unset_ex_lock(), and unset_sh_lock().
LockHolder::sessionHasLocks | ( | $ | session | ) |
LockHolder::set_ex_lock | ( | $ | key, |
$ | session | ||
) | [protected] |
$key | string |
$session | string |
Definition at line 575 of file LockServerDaemon.php.
Referenced by lock().
LockHolder::set_sh_lock | ( | $ | key, |
$ | session | ||
) | [protected] |
$key | string |
$session | string |
Definition at line 562 of file LockServerDaemon.php.
Referenced by lock().
LockHolder::unlock | ( | $ | session, |
$ | type, | ||
array $ | keys | ||
) |
$session | string |
$type | string |
$keys | Array |
Definition at line 524 of file LockServerDaemon.php.
References unset_ex_lock(), and unset_sh_lock().
LockHolder::unset_ex_lock | ( | $ | key, |
$ | session | ||
) | [protected] |
$key | string |
$session | string |
Definition at line 607 of file LockServerDaemon.php.
Referenced by release(), and unlock().
LockHolder::unset_sh_lock | ( | $ | key, |
$ | session | ||
) | [protected] |
$key | string |
$session | string |
Definition at line 588 of file LockServerDaemon.php.
Referenced by release(), and unlock().
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.