Métodos protegidos | |
void | handle (Event &ev) override |
![]() | |
Event | pop_event () |
Otros miembros heredados | |
![]() | |
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 () |
![]() | |
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... | |