X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FLock.php;h=9892f1f4e4d7e74e2dcab9212da8a09f4943401f;hb=be7bd106784ad4e45833b1649e8409ef48f0d19f;hp=7db0ea0db6ba69d186b0b608963aea904b513e08;hpb=3f7e4f5bb67c67586423d9e1105ce274b83767c3;p=friendica.git diff --git a/src/Core/Lock.php b/src/Core/Lock.php index 7db0ea0db6..9892f1f4e4 100644 --- a/src/Core/Lock.php +++ b/src/Core/Lock.php @@ -1,7 +1,5 @@ getMessage()); @@ -118,7 +113,7 @@ class Lock * * @return boolean Was the lock successful? */ - public static function acquireLock($key, $timeout = 120) + public static function acquire($key, $timeout = 120) { return self::getDriver()->acquireLock($key, $timeout); } @@ -127,11 +122,11 @@ class Lock * @brief Releases a lock if it was set by us * * @param string $key Name of the lock - * @return mixed + * @return void */ - public static function releaseLock($key) + public static function release($key) { - return self::getDriver()->releaseLock($key); + self::getDriver()->releaseLock($key); } /**