* Removed ticks for downloads, use the global tick instead.

* Fixed rak::priority_queue.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@608 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-12-15 22:56:03 +00:00
parent 7cc377b550
commit ca5b5e05ec
19 changed files with 145 additions and 106 deletions
+4 -4
View File
@@ -65,8 +65,8 @@ DownloadFactory::DownloadFactory(const std::string& uri, Manager* m) :
}
DownloadFactory::~DownloadFactory() {
taskScheduler.erase(m_taskLoad.clear());
taskScheduler.erase(m_taskCommit.clear());
priority_queue_erase(&taskScheduler, &m_taskLoad);
priority_queue_erase(&taskScheduler, &m_taskCommit);
delete m_stream;
m_stream = NULL;
@@ -74,12 +74,12 @@ DownloadFactory::~DownloadFactory() {
void
DownloadFactory::load() {
taskScheduler.push(m_taskLoad.prepare(cachedTime));
priority_queue_insert(&taskScheduler, &m_taskLoad, cachedTime);
}
void
DownloadFactory::commit() {
taskScheduler.push(m_taskCommit.prepare(cachedTime));
priority_queue_insert(&taskScheduler, &m_taskCommit, cachedTime);
}
void