Index: src/libchcore/TSubTaskDelete.cpp =================================================================== diff -u -N -rd76d3ce6c8c55fa23009dbb03b8bc06f482c5b72 -r7d59ab9183c933f2fc2682a95fb5d26cf2f952d7 --- src/libchcore/TSubTaskDelete.cpp (.../TSubTaskDelete.cpp) (revision d76d3ce6c8c55fa23009dbb03b8bc06f482c5b72) +++ src/libchcore/TSubTaskDelete.cpp (.../TSubTaskDelete.cpp) (revision 7d59ab9183c933f2fc2682a95fb5d26cf2f952d7) @@ -35,6 +35,9 @@ #include "DataBuffer.h" #include "TCoreException.h" #include "ErrorCodes.h" +#include "TScopedRunningTimeTracker.h" +#include "TFeedbackHandlerWrapper.h" +#include BEGIN_CHCORE_NAMESPACE @@ -52,15 +55,15 @@ m_tSubTaskStats.Clear(); } -TSubTaskBase::ESubOperationResult TSubTaskDelete::Exec() +TSubTaskBase::ESubOperationResult TSubTaskDelete::Exec(const IFeedbackHandlerPtr& spFeedback) { - TSubTaskProcessingGuard guard(m_tSubTaskStats); + TScopedRunningTimeTracker guard(m_tSubTaskStats); + TFeedbackHandlerWrapperPtr spFeedbackHandler(boost::make_shared(spFeedback, guard)); // log icpf::log_file& rLog = GetContext().GetLog(); TFileInfoArray& rFilesCache = GetContext().GetFilesCache(); TWorkerThreadController& rThreadController = GetContext().GetThreadController(); - IFeedbackHandlerPtr spFeedbackHandler = GetContext().GetFeedbackHandler(); const TConfig& rConfig = GetContext().GetConfig(); // log