--- a/src/PosixMQCommand.h Wed Apr 20 20:59:42 2022 +0200
+++ b/src/PosixMQCommand.h Sat Apr 30 23:19:08 2022 +0200
@@ -20,6 +20,7 @@
#include <sstream>
#include <vector>
#include <memory>
+#include <atomic>
#include <relpipe/writer/TypeId.h>
@@ -32,11 +33,16 @@
class PosixMQCommand {
private:
std::wstring_convert<codecvt_utf8<wchar_t>> convertor; // TODO: support also other encodings.
+ std::atomic<bool> continueProcessing{true};
public:
virtual ~PosixMQCommand();
void process(std::shared_ptr<writer::RelationalWriter> writer, Configuration& configuration);
+ void finish(int sig) {
+ continueProcessing = false;
+ }
+
};
}