30 foreach ( $paths as
$path ) {
31 if ( isset( $this->locksHeld[
$path][
$type] ) ) {
38 return StatusValue::newGood();
42 $status = StatusValue::newGood();
44 foreach ( $paths as
$path ) {
45 if ( isset( $this->locksHeld[
$path][
$type] ) ) {
48 if ( !$this->locksHeld[
$path] ) {
49 unset( $this->locksHeld[
$path] );
53 $status->warning(
'lockmanager-notlocked',
$path );
Class for handling resource locking.
Simple version of LockManager that only does lock reference counting.
doLock(array $paths, $type)
Lock resources with the given keys and lock type.
doUnlock(array $paths, $type)
Unlock resources with the given keys and lock type.