#pragma once #include #include struct TEventHandler { virtual ~TEventHandler() { } virtual int Handle(int signum) = 0; }; void SetAsyncSignalHandler(int signum, THolder handler); void SetAsyncSignalHandler(int signum, void (*handler)(int)); void SetAsyncSignalFunction(int signum, std::function func);