Mutex instrumentation for troubleshooting...

SVN:2.1.0[3596]
This commit is contained in:
Denis Flaven
2015-06-19 14:48:13 +00:00
parent f048c6cb1f
commit 706e6c56ff

View File

@@ -131,7 +131,11 @@ class iTopMutex
$this->bLocked = true;
self::$aAcquiredLocks[$this->sName]++;
}
return ($res === '1');
if (($res !== '1') && ($res !== '0'))
{
IssueLog::Error('GET_LOCK('.$this->sName.', 0) returned: '.var_export($res, true).'. Expected values are: 0, 1 or null !!');
}
return ($res !== '0');
}
/**