Argentum Online - Servidor
Referencia de la Clase BlockingThEventHandlerabstract
Diagrama de herencias de BlockingThEventHandler
Thread EventHandler ChangeMapHandler ClientDropHandler ClientInitializeHandler CommandHandler CreationHandler ThBroadcaster ThDispatcher ThSocketSender

Métodos públicos

 BlockingThEventHandler (BlockingThEventHandler &&other)
 
BlockingThEventHandleroperator= (BlockingThEventHandler &&other)
 
bool is_threaded () const override
 Verificar si un EventHandler tiene un thread dedicado. Más...
 
bool is_done () const
 
void push_event (const Event &ev) override
 
virtual void run () override
 Function to be called by the thread. Más...
 
virtual void stop ()
 
- Métodos públicos heredados desde Thread
 Thread ()
 Construct a new Thread object. Más...
 
 Thread (const Thread &)=delete
 
Threadoperator= (const Thread &)=delete
 
 Thread (Thread &&other)
 Move constructor. Más...
 
virtual Threadoperator= (Thread &&other)
 
void operator() ()
 Thread as a functor, same as start(). Más...
 
void start ()
 Start the thread. Más...
 
virtual void join ()
 Join the thread. Más...
 
void usleep (unsigned int us)
 Sleeps for value in micro-seconds. Más...
 
template<class Rep , class Period >
void sleep (const std::chrono::duration< Rep, Period > &duration)
 Wrapper of std::this_thread::sleep_for. Más...
 
virtual ~Thread ()
 Deletes safely the thread, if it not joined, join() Más...
 

Métodos protegidos

Event pop_event ()
 
virtual void handle (Event &ev)=0
 

Documentación de las funciones miembro

◆ is_threaded()

bool BlockingThEventHandler::is_threaded ( ) const
overridevirtual

Verificar si un EventHandler tiene un thread dedicado.

La clase base no tiene un thread dedicado, pero alguna clase hija podría tenerlo.

Devuelve
false

Reimplementado de EventHandler.

◆ run()

void BlockingThEventHandler::run ( )
overridevirtual

Function to be called by the thread.

Implementa Thread.


La documentación para esta clase fue generada a partir de los siguientes ficheros: