CubicSDR/src/demod/DemodulatorMgr.h

31 lines
569 B
C
Raw Normal View History

#pragma once
#include <vector>
#include <map>
#include "DemodulatorThread.h"
class DemodulatorInstance {
public:
DemodulatorThread *demodulatorThread;
std::thread *t_Demod;
DemodulatorThreadInputQueue* threadQueueDemod;
DemodulatorThreadParameters params;
2014-11-22 22:33:32 -05:00
DemodulatorInstance();
void setVisualOutputQueue(DemodulatorThreadOutputQueue *tQueue);
void init();
};
class DemodulatorMgr {
public:
2014-11-22 22:33:32 -05:00
DemodulatorMgr();
~DemodulatorMgr();
2014-11-22 22:33:32 -05:00
DemodulatorInstance *newThread();
2014-11-22 22:33:32 -05:00
private:
std::vector<DemodulatorInstance *> demods;
};