mirror of
https://github.com/friendica/friendica
synced 2025-04-27 10:30:10 +00:00
Fixings
- fixed test for semaphore - fixed some issues - changed namespace in Tests back to "src/" - changed namings
This commit is contained in:
parent
906bb25972
commit
e41e7d2edd
15 changed files with 67 additions and 65 deletions
|
@ -1,7 +1,5 @@
|
|||
<?php
|
||||
/**
|
||||
* @file src/Util/Lock.php
|
||||
*/
|
||||
|
||||
namespace Friendica\Core;
|
||||
|
||||
/**
|
||||
|
@ -115,20 +113,20 @@ 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()->acquire($key, $timeout);
|
||||
return self::getDriver()->acquireLock($key, $timeout);
|
||||
}
|
||||
|
||||
/**
|
||||
* @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()->release($key);
|
||||
self::getDriver()->releaseLock($key);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue