Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/UI/FileManager/Panel.h')
-rw-r--r--CPP/7zip/UI/FileManager/Panel.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/CPP/7zip/UI/FileManager/Panel.h b/CPP/7zip/UI/FileManager/Panel.h
index 709ef0f5..fc74d556 100644
--- a/CPP/7zip/UI/FileManager/Panel.h
+++ b/CPP/7zip/UI/FileManager/Panel.h
@@ -841,4 +841,28 @@ public:
~CMyBuffer() { ::MidFree(_data); }
};
+class CExitEventLauncher
+{
+public:
+ NWindows::NSynchronization::CManualResetEvent _exitEvent;
+ bool _needExit;
+ CRecordVector< ::CThread > _threads;
+ unsigned _numActiveThreads;
+
+ CExitEventLauncher()
+ {
+ _needExit = false;
+ if (_exitEvent.Create(false) != S_OK)
+ throw 9387173;
+ _needExit = true;
+ _numActiveThreads = 0;
+ };
+
+ ~CExitEventLauncher() { Exit(true); }
+
+ void Exit(bool hardExit);
+};
+
+extern CExitEventLauncher g_ExitEventLauncher;
+
#endif