adapting mutex helper to new interface

This commit is contained in:
Robin Müller 2020-08-07 22:11:13 +02:00
parent 44b70b45e2
commit 458e849f7d
1 changed files with 3 additions and 2 deletions

View File

@ -6,9 +6,10 @@
class MutexHelper {
public:
MutexHelper(MutexIF* mutex, uint32_t timeoutMs) :
MutexHelper(MutexIF* mutex, MutexIF::TimeoutType timeoutType =
MutexIF::TimeoutType::BLOCKING, uint32_t timeoutMs) :
internalMutex(mutex) {
ReturnValue_t status = mutex->lockMutex(MutexIF::TimeoutType::WAITING,
ReturnValue_t status = mutex->lockMutex(timeoutType,
timeoutMs);
if(status == MutexIF::MUTEX_TIMEOUT) {
sif::error << "MutexHelper: Lock of mutex failed with timeout of "