ILockingProvider
Interface ILockingProvider
Tags
Table of Contents
- LOCK_EXCLUSIVE = 2
- LOCK_SHARED = 1
- acquireLock() : mixed
- changeLock() : mixed
- Change the type of an existing lock
- isLocked() : bool
- releaseAll() : mixed
- release all lock acquired by this instance
- releaseLock() : mixed
Constants
LOCK_EXCLUSIVE
public
mixed
LOCK_EXCLUSIVE
= 2
Tags
LOCK_SHARED
public
mixed
LOCK_SHARED
= 1
Tags
Methods
acquireLock()
public
acquireLock(string $path, int $type) : mixed
Parameters
- $path : string
- $type : int
-
self::LOCK_SHARED or self::LOCK_EXCLUSIVE
Tags
Return values
mixed —changeLock()
Change the type of an existing lock
public
changeLock(string $path, int $targetType) : mixed
Parameters
- $path : string
- $targetType : int
-
self::LOCK_SHARED or self::LOCK_EXCLUSIVE
Tags
Return values
mixed —isLocked()
public
isLocked(string $path, int $type) : bool
Parameters
- $path : string
- $type : int
-
self::LOCK_SHARED or self::LOCK_EXCLUSIVE
Tags
Return values
bool —releaseAll()
release all lock acquired by this instance
public
releaseAll() : mixed
Tags
Return values
mixed —releaseLock()
public
releaseLock(string $path, int $type) : mixed
Parameters
- $path : string
- $type : int
-
self::LOCK_SHARED or self::LOCK_EXCLUSIVE