diff options
Diffstat (limited to 'CPP/7zip/Archive/Common/CrossThreadProgress.h')
-rwxr-xr-x | CPP/7zip/Archive/Common/CrossThreadProgress.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CPP/7zip/Archive/Common/CrossThreadProgress.h b/CPP/7zip/Archive/Common/CrossThreadProgress.h index 5dd339dc..b5422a31 100755 --- a/CPP/7zip/Archive/Common/CrossThreadProgress.h +++ b/CPP/7zip/Archive/Common/CrossThreadProgress.h @@ -17,6 +17,12 @@ public: HRESULT Result; NWindows::NSynchronization::CAutoResetEvent ProgressEvent; NWindows::NSynchronization::CAutoResetEvent WaitEvent; + + HRes Create() + { + RINOK(ProgressEvent.CreateIfNotCreated()); + return WaitEvent.CreateIfNotCreated(); + } void Init() { ProgressEvent.Reset(); |