mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-07 10:42:31 +00:00
* Threaded XMLRPC support. Sponsored by Xirvik.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1123 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+17
-1
@@ -41,6 +41,10 @@
|
||||
|
||||
#include <rak/priority_queue_default.h>
|
||||
|
||||
namespace rpc {
|
||||
class SCgi;
|
||||
}
|
||||
|
||||
// Check if cacheline aligned with inheritance ends up taking two
|
||||
// cachelines.
|
||||
|
||||
@@ -51,12 +55,24 @@ public:
|
||||
|
||||
virtual void init_thread();
|
||||
|
||||
static void start_log_counter(ThreadBase* thread);
|
||||
rpc::SCgi* scgi() { return m_safe.scgi; }
|
||||
bool set_scgi(rpc::SCgi* scgi);
|
||||
|
||||
static void start_scgi(ThreadBase* thread);
|
||||
static void start_log_counter(ThreadBase* thread);
|
||||
|
||||
private:
|
||||
void task_touch_log();
|
||||
|
||||
rak::priority_item m_taskTouchLog;
|
||||
|
||||
struct lt_cacheline_aligned safe_type {
|
||||
safe_type() : scgi(NULL) {}
|
||||
|
||||
rpc::SCgi* scgi;
|
||||
};
|
||||
|
||||
safe_type m_safe;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user