]> git.mxchange.org Git - friendica.git/blobdiff - src/Util/Lock.php
Class file relocations
[friendica.git] / src / Util / Lock.php
index 9bf67d7043b8682e9af46078fe793795d1507fe2..9d96962964cf55ea8be5aadf952cf7e0be419444 100644 (file)
@@ -9,7 +9,7 @@ namespace Friendica\Util;
  */
 
 use Friendica\Core\Config;
-use Friendica\Database\Dbm;
+use Friendica\Database\DBM;
 use Memcache;
 use dba;
 
@@ -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;
                        }