diff options
Diffstat (limited to 'StarsEx/CmpSelectDlg.h')
-rw-r--r-- | StarsEx/CmpSelectDlg.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/StarsEx/CmpSelectDlg.h b/StarsEx/CmpSelectDlg.h index 093e21d..ee52425 100644 --- a/StarsEx/CmpSelectDlg.h +++ b/StarsEx/CmpSelectDlg.h @@ -14,7 +14,8 @@ #ifndef CmpSelectDlg_h #define CmpSelectDlg_h -#include <mutex> +#include <shared_mutex> +#include <thread> #include "Types.h" #include "FormWindow.h" @@ -53,7 +54,7 @@ public: virtual void OnAccept(AWEvent* event); virtual void OnCancel(AWEvent* event); - virtual DWORD LoadProc(); + virtual void LoadProc(); protected: virtual void StartLoadProc(); @@ -76,8 +77,8 @@ protected: Starshatter* stars; Campaign* campaign; int selected_mission; - HANDLE hproc; - std::mutex sync; + std::thread hproc; + std::shared_mutex sync; bool loading; bool loaded; Text load_file; |