From adf91f656b3f99ab3a624418b170b9183bfe8d8c Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 24 Jan 2009 10:40:42 +0000 Subject: 2009-01-24 Tatsuhiro Tsujikawa Made (piece) hash check sequential for each RequestGroup because simultaneous hash check is slower than sequential execution. * src/CheckIntegrityCommand.cc * src/CheckIntegrityDispatcherCommand.cc * src/CheckIntegrityDispatcherCommand.h * src/CheckIntegrityMan.h * src/ConsoleStatCalc.cc * src/DownloadCommand.cc * src/DownloadEngine.cc * src/DownloadEngine.h * src/DownloadEngineFactory.cc * src/Makefile.am * src/Makefile.in * src/RequestGroup.cc * src/StatCalc.h --- src/CheckIntegrityDispatcherCommand.h | 59 +++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/CheckIntegrityDispatcherCommand.h (limited to 'src/CheckIntegrityDispatcherCommand.h') diff --git a/src/CheckIntegrityDispatcherCommand.h b/src/CheckIntegrityDispatcherCommand.h new file mode 100644 index 00000000..480f6851 --- /dev/null +++ b/src/CheckIntegrityDispatcherCommand.h @@ -0,0 +1,59 @@ +/* */ +#ifndef _D_CHECK_INTEGRITY_DISPATCHER_COMMAND_H_ +#define _D_CHECK_INTEGRITY_DISPATCHER_COMMAND_H_ + +#include "SequentialDispatcherCommand.h" +#include "CheckIntegrityMan.h" + +namespace aria2 { + +class CheckIntegrityEntry; + +class CheckIntegrityDispatcherCommand : + public SequentialDispatcherCommand { +public: + CheckIntegrityDispatcherCommand + (int32_t cuid, + const SharedHandle& checkMan, + DownloadEngine* e); +protected: + virtual Command* createCommand + (const SharedHandle& entry); +}; + +} // namespace aria2 + +#endif // _D_CHECK_INTEGRITY_DISPATCHER_COMMAND_H_ -- cgit