mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-16 16:28: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) {
|
||||
numLive++;
|
||||
validatorInbox.push_move(std::move(inp));
|
||||
|
Reference in New Issue
Block a user