mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Mutex instrumentation for troubleshooting...
SVN:2.1.0[3596]
This commit is contained in:
@@ -131,7 +131,11 @@ class iTopMutex
|
|||||||
$this->bLocked = true;
|
$this->bLocked = true;
|
||||||
self::$aAcquiredLocks[$this->sName]++;
|
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');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user