Métodos públicos | |
| BlockingThEventHandler (BlockingThEventHandler &&other) | |
| BlockingThEventHandler & | operator= (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 | |
| Thread & | operator= (const Thread &)=delete |
| Thread (Thread &&other) | |
| Move constructor. Más... | |
| virtual Thread & | operator= (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 |
|
overridevirtual |
Verificar si un EventHandler tiene un thread dedicado.
La clase base no tiene un thread dedicado, pero alguna clase hija podría tenerlo.
Reimplementado de EventHandler.
|
overridevirtual |
Function to be called by the thread.
Implementa Thread.