fsfw/osal/linux/Mutex.h

19 lines
357 B
C
Raw Normal View History

2018-07-13 18:28:26 +02:00
#ifndef OS_RTEMS_MUTEX_H_
#define OS_RTEMS_MUTEX_H_
2020-08-13 20:53:35 +02:00
#include "../../ipc/MutexIF.h"
2018-07-13 18:28:26 +02:00
#include <pthread.h>
class Mutex : public MutexIF {
public:
Mutex();
virtual ~Mutex();
virtual ReturnValue_t lockMutex(uint32_t timeoutMs);
virtual ReturnValue_t unlockMutex();
private:
pthread_mutex_t mutex;
static uint8_t count;
};
#endif /* OS_RTEMS_MUTEX_H_ */