summaryrefslogtreecommitdiff
path: root/src/DownloadCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-03-16 14:21:29 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2007-03-16 14:21:29 +0000
commit113c8fac7f175db8a415c368ceefd62428d45967 (patch)
tree84b4f1b4d30f25e31d055397462f4293f316a825 /src/DownloadCommand.cc
parent11907c175d9e3e6f4069df79dade320b6f93cd7f (diff)
2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To reduce overhead to find commands whose socket is either readable or writable in the download engine loop: * src/Command.h, src/Command.cc (STATUS): New enum. (status): New variable. (statusMatch): New function. (setStatusActive): New function. (setStatusInactive): New function. * src/DownloadEngine.h, src/DownloadEngine.cc (executeCommand): New function. (run): Simplified. (waitData): Call Command::setStatusActive() when command's socket is readable or writable.
Diffstat (limited to 'src/DownloadCommand.cc')
-rw-r--r--src/DownloadCommand.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/DownloadCommand.cc b/src/DownloadCommand.cc
index dd905f61..8b0cd6df 100644
--- a/src/DownloadCommand.cc
+++ b/src/DownloadCommand.cc
@@ -130,7 +130,6 @@ bool DownloadCommand::prepareForNextSegment() {
while(1) {
SegmentHandle nextSegment = e->segmentMan->getSegment(cuid,
tempSegment->index+1);
- cerr << nextSegment.isNull() << endl;
if(nextSegment.isNull()) {
break;
} else {