~ubuntu-branches/debian/experimental/libtorrent/experimental

« back to all changes in this revision

Viewing changes to src/data/hash_queue.cc

  • Committer: Bazaar Package Importer
  • Author(s): Jose Luis Rivas
  • Date: 2007-03-31 10:31:05 UTC
  • mto: (4.1.4 gutsy) (6.2.1 squeeze) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 6.
  • Revision ID: james.westby@ubuntu.com-20070331103105-jzpp1rml6ud0ff75
Tags: upstream-0.11.4
ImportĀ upstreamĀ versionĀ 0.11.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
#include "hash_chunk.h"
45
45
#include "chunk.h"
46
46
#include "chunk_list_node.h"
 
47
#include "globals.h"
47
48
 
48
49
namespace torrent {
49
50
 
86
87
// If we're done immediately, move the chunk to the front of the list so
87
88
// the next work cycle gets stuff done.
88
89
void
89
 
HashQueue::push_back(ChunkHandle handle, SlotDone d) {
 
90
HashQueue::push_back(ChunkHandle handle, slot_done_type d) {
90
91
  if (!handle.is_valid())
91
92
    throw internal_error("HashQueue::add(...) received an invalid chunk");
92
93
 
161
162
    return false;
162
163
  }
163
164
 
164
 
  HashChunk* chunk                 = base_type::front().get_chunk();
165
 
  HashQueueNode::SlotDone slotDone = base_type::front().slot_done();
 
165
  HashChunk* chunk                       = base_type::front().get_chunk();
 
166
  HashQueueNode::slot_done_type slotDone = base_type::front().slot_done();
166
167
 
167
168
  base_type::pop_front();
168
169