30 lines
451 B
C++
30 lines
451 B
C++
#ifndef ZM_ANALYSIS_THREAD_H
|
|
#define ZM_ANALYSIS_THREAD_H
|
|
|
|
#include "zm_thread.h"
|
|
#include <signal.h>
|
|
|
|
#include "zm_monitor.h"
|
|
|
|
class AnalysisThread : public Thread {
|
|
private:
|
|
bool terminate;
|
|
sigset_t block_set;
|
|
Monitor *monitor;
|
|
|
|
public:
|
|
explicit AnalysisThread(Monitor *);
|
|
~AnalysisThread();
|
|
int run();
|
|
|
|
void stop() {
|
|
terminate = true;
|
|
}
|
|
bool stopped() const {
|
|
return terminate;
|
|
}
|
|
|
|
};
|
|
|
|
#endif
|