Relocate class files from /include to /src/

dbm, Diaspora, dfrn, and NotificationsManager moved to namespace. Includes and references in files updated.
This commit is contained in:
Adam Magness 2017-11-07 19:37:53 -05:00
parent 2a814623d8
commit 6189f6c8e7
31 changed files with 7965 additions and 67 deletions

View file

@ -9,9 +9,9 @@ namespace Friendica\Util;
*/
use Friendica\Core\Config;
use Friendica\Database\Dbm;
use Memcache;
use dba;
use dbm;
/**
* @brief This class contain Functions for preventing parallel execution of functions
@ -121,7 +121,7 @@ class Lock {
dba::lock('locks');
$lock = dba::select('locks', array('locked', 'pid'), array('name' => $fn_name), array('limit' => 1));
if (dbm::is_result($lock)) {
if (Dbm::is_result($lock)) {
if ($lock['locked']) {
// When the process id isn't used anymore, we can safely claim the lock for us.
if (!posix_kill($lock['pid'], 0)) {
@ -136,7 +136,7 @@ class Lock {
dba::update('locks', array('locked' => true, 'pid' => getmypid()), array('name' => $fn_name));
$got_lock = true;
}
} elseif (!dbm::is_result($lock)) {
} elseif (!Dbm::is_result($lock)) {
dba::insert('locks', array('name' => $fn_name, 'locked' => true, 'pid' => getmypid()));
$got_lock = true;
}