WriterPipeline clean shutdown

This commit is contained in:
Doug Hoyte
2023-08-16 13:31:25 -04:00
parent a4688027b2
commit aec8dbc33a

View File

@ -151,6 +151,12 @@ struct WriterPipeline {
});
}
~WriterPipeline() {
flush();
validatorThread.join();
writerThread.join();
}
void write(WriterPipelineInput &&inp) {
numLive++;
validatorInbox.push_move(std::move(inp));