#pragma once #include "pch.h" #include "common/interop/shared_constants.h" class NativeEventWaiter { static const int timeout = 1000; HANDLE event_handle = nullptr; std::function action = nullptr; std::atomic aborting = false; void run(); std::thread running_thread; public: NativeEventWaiter(const std::wstring& event_name, std::function action); ~NativeEventWaiter(); };