36#include <initializer_list>
40#include <unordered_map>
44#define DLL_EXPORT __declspec(dllexport)
103 DLL_EXPORT std::optional<int>
wait_for(std::initializer_list<int> signums,
const std::chrono::system_clock::duration &timeout);
112 DLL_EXPORT std::optional<int>
wait_until(std::initializer_list<int> signums,
const std::chrono::system_clock::time_point &deadline);
DLL_EXPORT std::optional< int > wait_until(std::initializer_list< int > signums, const std::chrono::system_clock::time_point &deadline)
wait for any signal in the list until a deadline
std::function< void(int)> handler_function
signal handler function object type
Definition sigfn.hpp:56
DLL_EXPORT std::optional< int > wait_for(std::initializer_list< int > signums, const std::chrono::system_clock::duration &timeout)
wait for any signal in the list with a timeout
DLL_EXPORT void handle(int signum, const handler_function &handler_function)
attach handler to specific signal using copy semantics
DLL_EXPORT void ignore(int signum)
ignore a specific signal
DLL_EXPORT int wait(std::initializer_list< int > signums)
wait for any signal in the list
DLL_EXPORT void reset(int signum)
reset a specific signal to its default behavior
#define DLL_EXPORT
Definition sigfn.h:49