Mutex instrumentation for troubleshooting...

SVN:2.1.1[3597]
This commit is contained in:
Denis Flaven
2015-06-19 14:49:15 +00:00
parent 5dd7141d54
commit 3345b07cc0

View File

@@ -121,7 +121,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');
}
/**