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

branch
TOR_BUG_9701
changeset 8
97036ab72558
equal deleted inserted replaced
-1:000000000000 0:35b3fe89e3ba
1 // CrossThreadProgress.h
2
3 #ifndef __CROSSTHREADPROGRESS_H
4 #define __CROSSTHREADPROGRESS_H
5
6 #include "../../ICoder.h"
7 #include "../../../Windows/Synchronization.h"
8 #include "../../../Common/MyCom.h"
9
10 class CCrossThreadProgress:
11 public ICompressProgressInfo,
12 public CMyUnknownImp
13 {
14 public:
15 const UInt64 *InSize;
16 const UInt64 *OutSize;
17 HRESULT Result;
18 NWindows::NSynchronization::CAutoResetEvent ProgressEvent;
19 NWindows::NSynchronization::CAutoResetEvent WaitEvent;
20 void Init()
21 {
22 ProgressEvent.Reset();
23 WaitEvent.Reset();
24 }
25
26 MY_UNKNOWN_IMP
27
28 STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize);
29 };
30
31 #endif

mercurial