fsfw/src/fsfw/osal/linux/Mutex.h

21 lines
406 B
C
Raw Normal View History

2020-12-14 21:46:33 +01:00
#ifndef FSFW_OSAL_LINUX_MUTEX_H_
#define FSFW_OSAL_LINUX_MUTEX_H_
2018-07-13 18:28:26 +02:00
#include <pthread.h>
2020-08-07 22:16:10 +02:00
2022-02-02 10:29:30 +01:00
#include "../../ipc/MutexIF.h"
2018-07-13 18:28:26 +02:00
class Mutex : public MutexIF {
2022-02-02 10:29:30 +01:00
public:
Mutex();
virtual ~Mutex();
virtual ReturnValue_t lockMutex(TimeoutType timeoutType, uint32_t timeoutMs);
virtual ReturnValue_t unlockMutex();
private:
pthread_mutex_t mutex;
static uint8_t count;
2018-07-13 18:28:26 +02:00
};
#endif /* OS_RTEMS_MUTEX_H_ */