fsfw/osal/rtems/Mutex.h

19 lines
379 B
C
Raw Normal View History

2020-06-08 14:11:38 +02:00
#ifndef FRAMEWORK_OSAL_RTEMS_MUTEX_H_
#define FRAMEWORK_OSAL_RTEMS_MUTEX_H_
#include <framework/ipc/MutexIF.h>
#include "RtemsBasic.h"
class Mutex : public MutexIF {
public:
Mutex();
~Mutex();
2020-06-09 13:26:27 +02:00
ReturnValue_t lockMutex(uint32_t timeoutMs = MutexIF::BLOCKING);
ReturnValue_t unlockMutex();
private:
rtems_id mutexId;
static uint8_t count;
};
#endif /* OS_RTEMS_MUTEX_H_ */