mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-08 04:07:40 +02:00
[ShortcutGuide] make SCG launching behavior a bit more deterministic (#10007)
This commit is contained in:
@@ -6,15 +6,14 @@ class NativeEventWaiter
|
|||||||
{
|
{
|
||||||
static const int timeout = 1000;
|
static const int timeout = 1000;
|
||||||
|
|
||||||
HANDLE event_handle;
|
HANDLE event_handle = nullptr;
|
||||||
std::function<void()> action;
|
std::function<void()> action = nullptr;
|
||||||
std::atomic<bool> aborting;
|
std::atomic<bool> aborting = false;
|
||||||
|
|
||||||
void run();
|
void run();
|
||||||
std::thread running_thread;
|
std::thread running_thread;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
NativeEventWaiter(const std::wstring& event_name, std::function<void()> action);
|
NativeEventWaiter(const std::wstring& event_name, std::function<void()> action);
|
||||||
~NativeEventWaiter();
|
~NativeEventWaiter();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user