fsfw/src/fsfw/osal/rtems/MutexFactory.cpp

16 lines
415 B
C++
Raw Normal View History

#include "fsfw/ipc/MutexFactory.h"
2021-01-28 11:28:28 +01:00
2022-02-02 10:29:30 +01:00
#include "fsfw/osal/rtems/Mutex.h"
MutexFactory* MutexFactory::factoryInstance = new MutexFactory();
2022-02-02 10:29:30 +01:00
MutexFactory::MutexFactory() {}
2022-02-02 10:29:30 +01:00
MutexFactory::~MutexFactory() {}
2022-02-02 10:29:30 +01:00
MutexFactory* MutexFactory::instance() { return MutexFactory::factoryInstance; }
2022-02-02 10:29:30 +01:00
MutexIF* MutexFactory::createMutex() { return new Mutex(); }
2022-02-02 10:29:30 +01:00
void MutexFactory::deleteMutex(MutexIF* mutex) { delete mutex; }