mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-06 22:29:23 +00:00
Replace ThreadWorker with scgi::ThreadScgi.
This commit is contained in:
+18
-5
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user