Cleaned up thread-related code.

This commit is contained in:
rakshasa
2025-04-12 22:41:40 +02:00
committed by Jari Sundell
parent d1dd5ac080
commit a8622e5c80
8 changed files with 44 additions and 118 deletions
+7 -2
View File
@@ -34,7 +34,10 @@ ThreadWorker::set_scgi(rpc::SCgi* scgi) {
change_rpc_log();
queue_item((thread_base_func)&start_scgi);
callback(nullptr, [this]() {
start_scgi(this);
});
return true;
}
@@ -42,7 +45,9 @@ void
ThreadWorker::set_rpc_log(const std::string& filename) {
m_rpcLog = filename;
queue_item((thread_base_func)&msg_change_rpc_log);
callback(nullptr, [this]() {
msg_change_rpc_log(this);
});
}
void