30 if( m_this ==
nullptr )
33 G_WARNING(
"GNet::EventLoop::ctor: multiple instances" ) ;
49 if( m_this ==
nullptr )
56 return m_this != nullptr ;
61 if( m_this !=
nullptr )
62 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.