mutex helper new output error
This commit is contained in:
parent
e9a9a543ce
commit
2b646551e9
@ -9,8 +9,12 @@ public:
|
|||||||
MutexHelper(MutexIF* mutex, uint32_t timeoutMs) :
|
MutexHelper(MutexIF* mutex, uint32_t timeoutMs) :
|
||||||
internalMutex(mutex) {
|
internalMutex(mutex) {
|
||||||
ReturnValue_t status = mutex->lockMutex(timeoutMs);
|
ReturnValue_t status = mutex->lockMutex(timeoutMs);
|
||||||
if(status != HasReturnvaluesIF::RETURN_OK){
|
if(status == MutexIF::MUTEX_TIMEOUT) {
|
||||||
sif::error << "MutexHelper: Lock of Mutex failed " <<
|
sif::error << "MutexHelper: Lock of mutex failed with timeout of"
|
||||||
|
<< timeoutMs << " milliseconds!" << std::endl;
|
||||||
|
}
|
||||||
|
else if(status != HasReturnvaluesIF::RETURN_OK){
|
||||||
|
sif::error << "MutexHelper: Lock of Mutex failed with code " <<
|
||||||
status << std::endl;
|
status << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user