AbstractLockingProvider

class OC\Lock\AbstractLockingProvider
Base locking provider that keeps track of locks acquired during the current request
to release any left over locks at the end of the request
Source:lib/private/Lock/AbstractLockingProvider.php#36
Implements:OCP\Lock\ILockingProvider

Properties

protected static property OC\Lock\AbstractLockingProvider::$ttl
Source:lib/private/Lock/AbstractLockingProvider.php#38
Type:int
protected static property OC\Lock\AbstractLockingProvider::$acquiredLocks
Source:lib/private/Lock/AbstractLockingProvider.php#40

Methods

protected OC\Lock\AbstractLockingProvider::hasAcquiredLock($path, $type)
Check if we’ve locally acquired a lock
Source:

lib/private/Lock/AbstractLockingProvider.php#52

Parameters:
  • $path (string)
  • $type (int)
Returns:

bool

protected OC\Lock\AbstractLockingProvider::markAcquire($path, $type)
Mark a locally acquired lock
Source:

lib/private/Lock/AbstractLockingProvider.php#66

Parameters:
  • $path (string)
  • $type (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
protected OC\Lock\AbstractLockingProvider::markRelease($path, $type)
Mark a release of a locally acquired lock
Source:

lib/private/Lock/AbstractLockingProvider.php#83

Parameters:
  • $path (string)
  • $type (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
protected OC\Lock\AbstractLockingProvider::markChange($path, $targetType)
Change the type of an existing tracked lock
Source:

lib/private/Lock/AbstractLockingProvider.php#102

Parameters:
  • $path (string)
  • $targetType (int) self::LOCK_SHARED or self::LOCK_EXCLUSIVE
public OC\Lock\AbstractLockingProvider::releaseAll()
release all lock acquired by this instance which were marked using the mark* methods
Source:lib/private/Lock/AbstractLockingProvider.php#118
protected OC\Lock\AbstractLockingProvider::getOwnSharedLockCount($path)
Source:lib/private/Lock/AbstractLockingProvider.php#130