mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 14:12:31 +00:00
* More work on threading.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1112 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+3
-3
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user