mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-18 09:17:12 +00:00
stop WriterPipeline threads on shutdown
This commit is contained in:
@ -50,7 +50,7 @@ struct WriterPipeline {
|
|||||||
shutdownRequested = true;
|
shutdownRequested = true;
|
||||||
writerInbox.push_move({});
|
writerInbox.push_move({});
|
||||||
shutdownCv.notify_all();
|
shutdownCv.notify_all();
|
||||||
break;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string flatStr;
|
std::string flatStr;
|
||||||
@ -143,6 +143,7 @@ struct WriterPipeline {
|
|||||||
if (shutdownComplete) {
|
if (shutdownComplete) {
|
||||||
flushInbox.push_move(true);
|
flushInbox.push_move(true);
|
||||||
if (numLive != 0) LW << "numLive was not 0 after shutdown!";
|
if (numLive != 0) LW << "numLive was not 0 after shutdown!";
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
backpressureCv.notify_all();
|
backpressureCv.notify_all();
|
||||||
|
Reference in New Issue
Block a user