[ShortcutGuide] make SCG launching behavior a bit more deterministic (#10007)

This commit is contained in:
Andrey Nekrasov
2021-03-03 13:53:41 +03:00
committed by GitHub
parent a2fcc14e8b
commit 571e7f2c2c

View File

@@ -6,15 +6,14 @@ class NativeEventWaiter
{
static const int timeout = 1000;
HANDLE event_handle;
std::function<void()> action;
std::atomic<bool> aborting;
HANDLE event_handle = nullptr;
std::function<void()> action = nullptr;
std::atomic<bool> aborting = false;
void run();
std::thread running_thread;
public:
NativeEventWaiter(const std::wstring& event_name, std::function<void()> action);
~NativeEventWaiter();
};