30 if( m_this ==
nullptr )
47 if( m_this ==
nullptr )
54 return m_this != nullptr ;
60 if( m_this !=
nullptr )
61 m_this->quit( signal_safe ) ;
An abstract base class for a singleton that keeps track of open sockets and their associated handlers...
virtual ~EventLoop()
Destructor.
static void stop(const G::SignalSafe &)
Calls quit() on instance().
static EventLoop * ptr() noexcept
Returns a pointer to an instance of the class, if any.
static bool exists()
Returns true if an instance exists.
static EventLoop & instance()
Returns a reference to an instance of the class, if any.
An empty structure that is used to indicate a signal-safe, reentrant implementation.