* 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:
rakshasa
2010-01-25 13:14:09 +00:00
parent 83ea813245
commit 588f9e80c7
12 changed files with 103 additions and 63 deletions
+17 -1
View File
@@ -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