summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-08-03 15:46:23 +0200
committerRobin Appelman <icewind@owncloud.com>2015-08-03 15:46:23 +0200
commitcd205249e4deb397235dde90e707135fcc85d878 (patch)
tree4dfa47c1597db8705c88fdac27d1c44c1ca42981 /lib
parent132a564a217d38a9ac66e26a00d0c1181bd1257a (diff)
downloadnextcloud-server-cd205249e4deb397235dde90e707135fcc85d878.tar.gz
nextcloud-server-cd205249e4deb397235dde90e707135fcc85d878.zip
more phpdoc
Diffstat (limited to 'lib')
-rw-r--r--lib/private/lock/abstractlockingprovider.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/private/lock/abstractlockingprovider.php b/lib/private/lock/abstractlockingprovider.php
index 03b4912ea13..c9c3e08994e 100644
--- a/lib/private/lock/abstractlockingprovider.php
+++ b/lib/private/lock/abstractlockingprovider.php
@@ -23,6 +23,10 @@ namespace OC\Lock;
use OCP\Lock\ILockingProvider;
+/**
+ * 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
+ */
abstract class AbstractLockingProvider implements ILockingProvider {
protected $acquiredLocks = [
'shared' => [],
@@ -30,6 +34,8 @@ abstract class AbstractLockingProvider implements ILockingProvider {
];
/**
+ * Mark a locally acquired lock
+ *
* @param string $path
* @param int $type self::LOCK_SHARED or self::LOCK_EXCLUSIVE
*/
@@ -45,6 +51,8 @@ abstract class AbstractLockingProvider implements ILockingProvider {
}
/**
+ * Mark a release of a locally acquired lock
+ *
* @param string $path
* @param int $type self::LOCK_SHARED or self::LOCK_EXCLUSIVE
*/
@@ -59,7 +67,7 @@ abstract class AbstractLockingProvider implements ILockingProvider {
}
/**
- * Change the type of an existing lock
+ * Change the type of an existing tracked lock
*
* @param string $path
* @param int $targetType self::LOCK_SHARED or self::LOCK_EXCLUSIVE