mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-17 16:58:50 +00:00
WriterPipeline clean shutdown
This commit is contained in:
@ -151,6 +151,12 @@ struct WriterPipeline {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~WriterPipeline() {
|
||||||
|
flush();
|
||||||
|
validatorThread.join();
|
||||||
|
writerThread.join();
|
||||||
|
}
|
||||||
|
|
||||||
void write(WriterPipelineInput &&inp) {
|
void write(WriterPipelineInput &&inp) {
|
||||||
numLive++;
|
numLive++;
|
||||||
validatorInbox.push_move(std::move(inp));
|
validatorInbox.push_move(std::move(inp));
|
||||||
|
Reference in New Issue
Block a user