QuickCppLib 0.10
Eliminate all the tedious hassle when making state-of-the-art C++ 14 - 23 libraries!
Loading...
Searching...
No Matches
quickcpplib::_xxx::signal_guard::detail Namespace Reference

Classes

struct  invoke_terminate_process_immediately
 
struct  is_constructible_or_void
 
struct  is_constructible_or_void< void, void >
 
class  signal_guard_global_decider_impl
 
class  signal_guard_watchdog_impl
 
struct  thread_local_signal_guard
 

Functions

SIGNALGUARD_FUNC_DECL const char * signalc_to_string (signalc code) noexcept
 
std::atomic< signalc_set > & signal_guards_installed ()
 
SIGNALGUARD_FUNC_DECL void push_thread_local_signal_handler (thread_local_signal_guard *) noexcept
 
SIGNALGUARD_FUNC_DECL void pop_thread_local_signal_handler (thread_local_signal_guard *) noexcept
 
SIGNALGUARD_FUNC_DECL thread_local_signal_guard * current_thread_local_signal_handler () noexcept
 
template<class R >
throw_signal_raised (const raised_signal_info *i)
 
bool continue_or_handle (const raised_signal_info *) noexcept
 

Function Documentation

◆ signalc_to_string()

SIGNALGUARD_FUNC_DECL const char * quickcpplib::_xxx::signal_guard::detail::signalc_to_string ( signalc  code)
noexcept

◆ signal_guards_installed()

std::atomic< signalc_set > & quickcpplib::_xxx::signal_guard::detail::signal_guards_installed ( )
externinline
391 {
392 static std::atomic<signalc_set> v;
393 return v;
394 }

◆ push_thread_local_signal_handler()

SIGNALGUARD_FUNC_DECL void quickcpplib::_xxx::signal_guard::detail::push_thread_local_signal_handler ( thread_local_signal_guard *  )
noexcept

◆ pop_thread_local_signal_handler()

SIGNALGUARD_FUNC_DECL void quickcpplib::_xxx::signal_guard::detail::pop_thread_local_signal_handler ( thread_local_signal_guard *  )
noexcept

◆ current_thread_local_signal_handler()

SIGNALGUARD_FUNC_DECL thread_local_signal_guard * quickcpplib::_xxx::signal_guard::detail::current_thread_local_signal_handler ( )
noexcept

◆ throw_signal_raised()

template<class R >
R quickcpplib::_xxx::signal_guard::detail::throw_signal_raised ( const raised_signal_info i)
inline
719 {
720#ifdef __cpp_exceptions
721 throw signal_raised(signalc(1ULL << i->signo));
722#else
723 abort();
724#endif
725 }
Thrown by the default signal handler to abort the current operation.
Definition signal_guard.hpp:670
signalc
The signals which are supported.
Definition signal_guard.hpp:267
int signo
The signal raised.
Definition signal_guard.hpp:130

◆ continue_or_handle()

bool quickcpplib::_xxx::signal_guard::detail::continue_or_handle ( const raised_signal_info )
inlinenoexcept
727 {
728 return false;
729 }