allow notifying queue and improve shutdown duration

This commit is contained in:
John
2023-09-23 09:09:05 +02:00
parent 689c38610b
commit 9bd534afa4
3 changed files with 14 additions and 9 deletions
+7
View File
@@ -205,6 +205,13 @@ MainLoop::~MainLoop() {
}
}
void MainLoop::shutdown() {
m_shutdown = true;
if (m_requestQueue != nullptr) {
m_requestQueue->push(nullptr); // just to notify potentially waiting thread
}
}
/** the delay for running the update check. */
#define CHECK_DELAY (24*3600)