summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/3rdparty/7zip/unix/CPP/7zip/Archive/Common/CrossThreadProgress.h
diff options
context:
space:
mode:
authortjenssen <tim.jenssen@nokia.com>2012-03-13 13:24:26 +0100
committerKarsten Heimrich <karsten.heimrich@nokia.com>2012-03-13 17:35:25 +0100
commitac25995f5c24000a73b4da2d52eac8f3e6ae65d9 (patch)
tree3c1d0824af7fd89067a1600864abe91ca9d5f2e6 /installerbuilder/libinstaller/3rdparty/7zip/unix/CPP/7zip/Archive/Common/CrossThreadProgress.h
parentfea754a77e599328c0a7d0801792ae1b5bc155fc (diff)
added new 7zip version 9.20 files(only the needed ones)
Change-Id: Ife071365d6dc240e6524069874f31ba7b9e8debd Reviewed-by: Karsten Heimrich <karsten.heimrich@nokia.com>
Diffstat (limited to 'installerbuilder/libinstaller/3rdparty/7zip/unix/CPP/7zip/Archive/Common/CrossThreadProgress.h')
-rw-r--r--installerbuilder/libinstaller/3rdparty/7zip/unix/CPP/7zip/Archive/Common/CrossThreadProgress.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/3rdparty/7zip/unix/CPP/7zip/Archive/Common/CrossThreadProgress.h b/installerbuilder/libinstaller/3rdparty/7zip/unix/CPP/7zip/Archive/Common/CrossThreadProgress.h
new file mode 100644
index 000000000..7e0b10538
--- /dev/null
+++ b/installerbuilder/libinstaller/3rdparty/7zip/unix/CPP/7zip/Archive/Common/CrossThreadProgress.h
@@ -0,0 +1,37 @@
+// CrossThreadProgress.h
+
+#ifndef __CROSSTHREADPROGRESS_H
+#define __CROSSTHREADPROGRESS_H
+
+#include "../../ICoder.h"
+#include "../../../Windows/Synchronization.h"
+#include "../../../Common/MyCom.h"
+
+class CCrossThreadProgress:
+ public ICompressProgressInfo,
+ public CMyUnknownImp
+{
+public:
+ const UInt64 *InSize;
+ const UInt64 *OutSize;
+ HRESULT Result;
+ NWindows::NSynchronization::CAutoResetEvent ProgressEvent;
+ NWindows::NSynchronization::CAutoResetEvent WaitEvent;
+
+ HRes Create()
+ {
+ RINOK(ProgressEvent.CreateIfNotCreated());
+ return WaitEvent.CreateIfNotCreated();
+ }
+ void Init()
+ {
+ ProgressEvent.Reset();
+ WaitEvent.Reset();
+ }
+
+ MY_UNKNOWN_IMP
+
+ STDMETHOD(SetRatioInfo)(const UInt64 *inSize, const UInt64 *outSize);
+};
+
+#endif