HRESULT CMtProgressMixer2::SetRatioInfo(unsigned index, const UInt64 *inSize, const UInt64 *outSize) { NWindows::NSynchronization::CCriticalSectionLock lock(CriticalSection); if (index == 0 && RatioProgress) { RINOK(RatioProgress->SetRatioInfo(inSize, outSize)); } if (inSize) InSizes[index] = *inSize; if (outSize) OutSizes[index] = *outSize; UInt64 v = ProgressOffset + (_inSizeIsMain ? (InSizes[0] + InSizes[1]) : (OutSizes[0] + OutSizes[1])); return Progress->SetCompleted(&v); }
HRESULT CProgressImp::SetCompletedCD(UInt64 numFiles) { return _callback->SetCompleted(&numFiles, NULL); }
STDMETHODIMP CProgressImp::SetCompleted(UInt64 numFiles) { if (_callback) return _callback->SetCompleted(&numFiles, NULL); return S_OK; }
HRESULT CProgressImp::SetCompletedLocal(UInt64 numFiles, UInt64 numBytes) { return _callback->SetCompleted(&numFiles, &numBytes); }