* More work on threading.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1112 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2009-12-12 21:30:52 +00:00
parent ef6e4deca9
commit b635f8c852
15 changed files with 278 additions and 48 deletions
+3 -3
View File
@@ -49,7 +49,7 @@ struct thread_queue_hack;
struct thread_queue_hack;
class __cacheline_aligned ThreadBase {
class ThreadBase {
public:
typedef rak::priority_queue_default priority_queue;
typedef void (*thread_base_func)(ThreadBase*);
@@ -62,13 +62,13 @@ public:
};
ThreadBase();
~ThreadBase();
virtual ~ThreadBase();
torrent::Poll* poll() { return m_pollManager->get_torrent_poll(); }
core::PollManager* poll_manager() { return m_pollManager; }
priority_queue& task_scheduler() { return m_taskScheduler; }
virtual void init_thread();
virtual void init_thread() = 0;
void start_thread();
void stop_thread();