2020-08-13 20:53:35 +02:00
|
|
|
#include "../../ipc/MutexFactory.h"
|
2018-07-12 16:29:32 +02:00
|
|
|
#include "Mutex.h"
|
|
|
|
#include "RtemsBasic.h"
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|