2021-07-14 10:50:44 +02:00
|
|
|
#include "fsfw/osal/rtems/Mutex.h"
|
2021-01-28 11:28:28 +01:00
|
|
|
|
2021-07-14 10:50:44 +02:00
|
|
|
#include "fsfw/ipc/MutexFactory.h"
|
2021-01-28 11:28:28 +01:00
|
|
|
|
2018-07-12 16:29:32 +02:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|