29 foreach ( $paths as
$path ) {
30 if ( isset( $this->locksHeld[
$path][
$type] ) ) {
37 return StatusValue::newGood();
41 $status = StatusValue::newGood();
43 foreach ( $paths as
$path ) {
44 if ( isset( $this->locksHeld[
$path][
$type] ) ) {
47 if ( !$this->locksHeld[
$path] ) {
48 unset( $this->locksHeld[
$path] );
52 $status->warning(
'lockmanager-notlocked',
$path );
Resource locking handling.
Simple lock management based on in-process 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.