diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-05-29 14:34:21 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-06-01 13:24:02 +0200 |
commit | a1372b2fb5acc51eacf70012a6702a96c78e61ff (patch) | |
tree | 391f8392a034c276ec7838698cd4af3a8bd6fbd5 /lib/public | |
parent | 43772e2a9a4b1400e7e3a8874130ac817aa64058 (diff) | |
download | nextcloud-server-a1372b2fb5acc51eacf70012a6702a96c78e61ff.tar.gz nextcloud-server-a1372b2fb5acc51eacf70012a6702a96c78e61ff.zip |
add method to atomically change between shared and exclusive lock
Diffstat (limited to 'lib/public')
-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(); |