Host OSAL bugfixes #289

Merged
gaisser merged 12 commits from mueller/host-osal-atomic into development 2020-12-08 14:10:32 +01:00
Showing only changes of commit a92f6c5d8e - Show all commits

View File

@ -4,12 +4,12 @@
Mutex::Mutex() {}
ReturnValue_t Mutex::lockMutex(TimeoutType timeoutType, uint32_t timeoutMs) {
if(timeoutMs == MutexIF::BLOCKING) {
if(timeoutType == MutexIF::BLOCKING) {
mutex.lock();
locked = true;
return HasReturnvaluesIF::RETURN_OK;
}
else if(timeoutMs == MutexIF::POLLING) {
else if(timeoutType == MutexIF::POLLING) {
if(mutex.try_lock()) {
locked = true;
return HasReturnvaluesIF::RETURN_OK;