Métodos públicos | |
ThSocketReceiver (int id, Socket &socket, BlockingThEventHandler &recieve_handler) | |
ThSocketReceiver (ThSocketReceiver &&other) | |
ThSocketReceiver & | operator= (ThSocketReceiver &&other)=delete |
virtual void | run () override |
Function to be called by the thread. Más... | |
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... | |
|
overridevirtual |
Function to be called by the thread.
Implementa Thread.