Replace ThreadWorker with scgi::ThreadScgi.

This commit is contained in:
Jari Sundell
2025-12-17 23:43:43 +01:00
committed by GitHub
parent 8f644e65dd
commit 5dbb0020dc
13 changed files with 218 additions and 150 deletions
+18 -5
View File
@@ -6,20 +6,33 @@
#include "rpc/ip_table_list.h"
class Control;
class ThreadWorker;
extern rpc::ip_table_list ip_tables;
extern Control* control;
// TODO: Update to new thread model.
extern ThreadWorker* worker_thread;
namespace rpc {
class SCgi;
}
namespace session {
class SessionManager;
}
} // namespace session
namespace scgi_thread {
torrent::utils::Thread* thread();
std::thread::id thread_id();
void callback(void* target, std::function<void ()>&& fn);
void cancel_callback(void* target);
void cancel_callback_and_wait(void* target);
rpc::SCgi* scgi();
void set_scgi(rpc::SCgi* scgi);
void set_rpc_log(const std::string& filename);
} // namespace torrent::scgi_thread
namespace session_thread {