30 if( m_this ==
nullptr )
33 G_WARNING(
"GNet::EventLoop::ctor: multiple instances" ) ;
44 if( m_this ==
nullptr )
46 G_ASSERT( m_this !=
nullptr ) ;
52 return m_this != nullptr ;
57 if( m_this !=
nullptr )
58 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...
virtual void onException(std::exception &) override
Override from ExceptionHandler that just rethrows the current exception.
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.