other-licenses/7zstub/src/7zip/Archive/Common/CrossThreadProgress.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/other-licenses/7zstub/src/7zip/Archive/Common/CrossThreadProgress.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +// CrossThreadProgress.h
     1.5 +
     1.6 +#ifndef __CROSSTHREADPROGRESS_H
     1.7 +#define __CROSSTHREADPROGRESS_H
     1.8 +
     1.9 +#include "../../ICoder.h"
    1.10 +#include "../../../Windows/Synchronization.h"
    1.11 +#include "../../../Common/MyCom.h"
    1.12 +
    1.13 +class CCrossThreadProgress: 
    1.14 +  public ICompressProgressInfo,
    1.15 +  public CMyUnknownImp
    1.16 +{
    1.17 +public:
    1.18 +  const UInt64 *InSize;
    1.19 +  const UInt64 *OutSize;
    1.20 +  HRESULT Result;
    1.21 +  NWindows::NSynchronization::CAutoResetEvent ProgressEvent;
    1.22 +  NWindows::NSynchronization::CAutoResetEvent WaitEvent;
    1.23 +  void Init()
    1.24 +  {
    1.25 +    ProgressEvent.Reset();
    1.26 +    WaitEvent.Reset();
    1.27 +  }
    1.28 +
    1.29 +  MY_UNKNOWN_IMP
    1.30 +
    1.31 +  STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize);
    1.32 +};
    1.33 +
    1.34 +#endif

mercurial