31 if( m_this ==
nullptr )
34 G_WARNING(
"GNet::EventLoop::ctor: multiple instances" ) ;
45 if( m_this ==
nullptr )
47 G_ASSERT( m_this !=
nullptr ) ;
53 return m_this != nullptr ;
58 if( m_this !=
nullptr )
59 m_this->quit( signal_safe ) ;
static void stop(const G::SignalSafe &)
Calls quit() on instance().
An empty structure that is used to indicate a signal-safe, reentrant implementation.
An abstract base class for a singleton that keeps track of open sockets and their associated handlers...
static bool exists()
Returns true if an instance exists.
virtual ~EventLoop()
Destructor.
static EventLoop & instance()
Returns a reference to an instance of the class, if any.