]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/Lock/ILockDriver.php
some minor fixings
[friendica.git] / src / Core / Lock / ILockDriver.php
index a255f683454753e414e2c20677f106661dccf486..7df5b3f87aaad43e7a1064fcc0113100c4485779 100644 (file)
@@ -33,16 +33,17 @@ interface ILockDriver
        /**
         * Releases a lock if it was set by us
         *
-        * @param string $key The Name of the lock
+        * @param string $key      The Name of the lock
+        * @param bool   $override Overrides the lock to get released
         *
-        * @return void
+        * @return boolean Was the unlock successful?
         */
-       public function releaseLock($key);
+       public function releaseLock($key, $override = false);
 
        /**
         * Releases all lock that were set by us
         *
-        * @return void
+        * @return boolean Was the unlock of all locks successful?
         */
        public function releaseAll();
 }