Moved Lock.php back to Utils

This commit is contained in:
Philipp Holzer 2018-06-26 23:28:07 +02:00
parent 2260b9c873
commit a57e6cfa1b
No known key found for this signature in database
GPG key ID: 58160D7D6AF942B6
7 changed files with 15 additions and 5 deletions

View file

@ -11,6 +11,7 @@ use Friendica\Database\DBM;
use Friendica\Model\Process;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Util\Lock;
use dba;
require_once 'include/dba.php';

View file

@ -19,6 +19,7 @@ use Friendica\Model\User;
use Friendica\Network\Probe;
use Friendica\Object\Image;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Lock;
use Friendica\Util\Network;
use Friendica\Util\XML;
use dba;

View file

@ -10,7 +10,7 @@ namespace Friendica\Util;
*/
use Friendica\Core\Config;
use Friendica\Core\Lock;
use Friendica\Util\Lock;
require_once 'include/dba.php';
@ -94,4 +94,9 @@ class Lock
{
self::getDriver()->releaseAll();
}
public static function isLocked($key)
{
}
}

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Lock;
namespace Friendica\Util\Lock;
use dba;
use Friendica\Database\DBM;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Lock;
namespace Friendica\Util\Lock;
/**
* Lock Driver Interface
@ -35,4 +35,7 @@ interface ILockDriver
* @return void
*/
public function releaseAll();
public function isLocked();
}

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Lock;
namespace Friendica\Util\Lock;
use Friendica\Core\Cache;
use dba;

View file

@ -1,6 +1,6 @@
<?php
namespace Friendica\Core\Lock;
namespace Friendica\Util\Lock;
class SemaphoreLockDriver implements ILockDriver
{