Experimental demodulator preprocessor thread

Demodulator becoming a CPU hotspot, trying to break up the workload
between threads..
This commit is contained in:
Charles J. Cliffe
2014-12-16 18:27:02 -05:00
parent 76c68cc4fa
commit c7a167a1d0
7 changed files with 267 additions and 256 deletions
+6
View File
@@ -5,17 +5,22 @@
#include <thread>
#include "DemodulatorThread.h"
#include "DemodulatorPreThread.h"
class DemodulatorInstance {
public:
DemodulatorThreadInputQueue* threadQueueDemod;
DemodulatorThreadPostInputQueue* threadQueuePostDemod;
DemodulatorThreadCommandQueue* threadQueueCommand;
DemodulatorThreadCommandQueue* threadQueueNotify;
DemodulatorPreThread *demodulatorPreThread;
DemodulatorThread *demodulatorThread;
#ifdef __APPLE__
pthread_t t_PreDemod;
pthread_t t_Demod;
#else
std::thread *t_PreDemod;
std::thread *t_Demod;
#endif
@@ -44,6 +49,7 @@ private:
bool terminated;
bool demodTerminated;
bool audioTerminated;
bool preDemodTerminated;
};