fsfw/src/fsfw/osal/linux/MutexFactory.cpp
Robin Mueller ddcac2bbac
All checks were successful
fsfw/fsfw/pipeline/pr-development This commit looks good
reapply clang format
2022-02-02 10:29:30 +01:00

17 lines
504 B
C++

#include "fsfw/ipc/MutexFactory.h"
#include "fsfw/osal/linux/Mutex.h"
// TODO: Different variant than the lazy loading in QueueFactory. What's better and why?
MutexFactory* MutexFactory::factoryInstance = new MutexFactory();
MutexFactory::MutexFactory() {}
MutexFactory::~MutexFactory() {}
MutexFactory* MutexFactory::instance() { return MutexFactory::factoryInstance; }
MutexIF* MutexFactory::createMutex() { return new Mutex(); }
void MutexFactory::deleteMutex(MutexIF* mutex) { delete mutex; }