Argentum Online - Servidor
Referencia de la Clase Threadabstract
Diagrama de herencias de Thread
BlockingThEventHandler GameLoop MapChanger ThClientAccepter ThObserver ThSocketReceiver ChangeMapHandler ClientDropHandler ClientInitializeHandler CommandHandler CreationHandler ThBroadcaster ThDispatcher ThSocketSender

Métodos públicos

 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 void run ()=0
 Function to be called by the thread. Más...
 
virtual ~Thread ()
 Deletes safely the thread, if it not joined, join() Más...
 

Documentación del constructor y destructor

◆ Thread() [1/2]

Thread::Thread ( )

Construct a new Thread object.

◆ Thread() [2/2]

Thread::Thread ( Thread &&  other)

Move constructor.

Parámetros
other

◆ ~Thread()

Thread::~Thread ( )
virtual

Deletes safely the thread, if it not joined, join()

Documentación de las funciones miembro

◆ join()

void Thread::join ( )
virtual

Join the thread.

Reimplementado en ThDispatcher.

◆ operator()()

void Thread::operator() ( )

Thread as a functor, same as start().

◆ run()

virtual void Thread::run ( )
pure virtual

Function to be called by the thread.

Implementado en ThObserver, ThClientAccepter, MapChanger, GameLoop, ThSocketReceiver y BlockingThEventHandler.

◆ sleep()

template<class Rep , class Period >
void Thread::sleep ( const std::chrono::duration< Rep, Period > &  duration)
inline

Wrapper of std::this_thread::sleep_for.

Parámetros del template
Rep
Period
Parámetros
duration

◆ start()

void Thread::start ( )

Start the thread.

◆ usleep()

void Thread::usleep ( unsigned int  us)

Sleeps for value in micro-seconds.

Parámetros
us

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