Index: src/libchcore/TSubTaskStatsInfo.h =================================================================== diff -u -N -r19925be73ffcadd9f345f10e03e55aadb3f0eeac -rd0bc3c187684f54894c7280a936d5507a5e49f35 --- src/libchcore/TSubTaskStatsInfo.h (.../TSubTaskStatsInfo.h) (revision 19925be73ffcadd9f345f10e03e55aadb3f0eeac) +++ src/libchcore/TSubTaskStatsInfo.h (.../TSubTaskStatsInfo.h) (revision d0bc3c187684f54894c7280a936d5507a5e49f35) @@ -63,8 +63,11 @@ public: TSubTaskStatsInfo(); + void Init(int iCurrentBufferIndex, size_t stTotalCount, size_t stProcessedCount, unsigned long long ullTotalSize, unsigned long long ullProcessedSize, const TString& strCurrentPath); void Clear(); + bool IsInitialized() const; + void GetSnapshot(TSubTaskStatsSnapshotPtr& spStatsSnapshot) const; void IncreaseProcessedCount(size_t stIncreaseBy); @@ -74,12 +77,14 @@ // size stats void IncreaseProcessedSize(unsigned long long ullIncreaseBy); + void DecreaseProcessedSize(unsigned long long ullDecreaseBy); void SetProcessedSize(unsigned long long ullProcessedSize); void SetTotalSize(unsigned long long ullTotalSize); // current item void IncreaseCurrentItemProcessedSize(unsigned long long ullIncreaseBy); + void DecreaseCurrentItemProcessedSize(unsigned long long ullDecreaseBy); void SetCurrentItemProcessedSize(unsigned long long ullProcessedSize); void SetCurrentItemTotalSize(unsigned long long ullTotalSize); @@ -128,6 +133,7 @@ eMod_CurrentBufferIndex, eMod_CurrentPath, eMod_SubOperationType, + eMod_IsInitialized, // last item eMod_Last @@ -157,6 +163,8 @@ TSharedModificationTracker m_eSubOperationType; + TSharedModificationTracker m_bIsInitialized; + #pragma warning(push) #pragma warning(disable: 4251) mutable boost::shared_mutex m_lock;