diff options
Diffstat (limited to 'lib/public/lock/ilockingprovider.php')
-rw-r--r-- | lib/public/lock/ilockingprovider.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/lock/ilockingprovider.php b/lib/public/lock/ilockingprovider.php index 18fa47fa631..6a963b9d7aa 100644 --- a/lib/public/lock/ilockingprovider.php +++ b/lib/public/lock/ilockingprovider.php @@ -46,6 +46,15 @@ interface ILockingProvider { public function releaseLock($path, $type); /** + * Change the type of an existing lock + * + * @param string $path + * @param int $targetType self::LOCK_SHARED or self::LOCK_EXCLUSIVE + * @throws \OCP\Lock\LockedException + */ + public function changeLock($path, $targetType); + + /** * release all lock acquired by this instance */ public function releaseAll(); |