mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 06:02:31 +00:00
* Replaced TaskScheduler with rak::priority_queue.
* Fixed an exception caused by initial hash check not properly cleaning up HashQueue when canceling. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@606 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -57,7 +57,7 @@ public:
|
||||
|
||||
bool is_active() { return m_active; }
|
||||
bool is_dynamic() { return m_dynamic; }
|
||||
bool is_dirty() { return displayScheduler.is_scheduled(&m_taskUpdate); }
|
||||
bool is_dirty() { return m_taskUpdate.is_queued(); }
|
||||
|
||||
//utils::rak::timer get_next_draw() { return m_nextDraw; }
|
||||
|
||||
@@ -87,13 +87,13 @@ protected:
|
||||
bool m_dynamic;
|
||||
int m_minHeight;
|
||||
|
||||
utils::TaskItem m_taskUpdate;
|
||||
rak::priority_item m_taskUpdate;
|
||||
};
|
||||
|
||||
inline void
|
||||
Window::mark_dirty() {
|
||||
displayScheduler.erase(&m_taskUpdate);
|
||||
displayScheduler.insert(&m_taskUpdate, cachedTime);
|
||||
displayScheduler.push(m_taskUpdate.prepare(cachedTime));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user