simplified storage accessor
This commit is contained in:
parent
1946af64af
commit
5af0c15dfc
@ -10,11 +10,11 @@ public:
|
|||||||
internalMutex(mutex) {
|
internalMutex(mutex) {
|
||||||
ReturnValue_t status = mutex->lockMutex(timeoutMs);
|
ReturnValue_t status = mutex->lockMutex(timeoutMs);
|
||||||
if(status != HasReturnvaluesIF::RETURN_OK){
|
if(status != HasReturnvaluesIF::RETURN_OK){
|
||||||
sif::error << "MutexHelper: Lock of Mutex failed " << status << std::endl;
|
sif::error << "MutexHelper: Lock of Mutex failed " <<
|
||||||
|
status << std::endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
~MutexHelper() {
|
~MutexHelper() {
|
||||||
internalMutex->unlockMutex();
|
internalMutex->unlockMutex();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user