Argentum Online - Servidor
|
|
55 void usleep(
unsigned int us);
64 template <
class Rep,
class Period>
65 void sleep(
const std::chrono::duration<Rep, Period>& duration) {
66 std::this_thread::sleep_for(duration);
73 virtual void run() = 0;
virtual void run()=0
Function to be called by the thread.
virtual void join()
Join the thread.
Definition: thread.cpp:23
void start()
Start the thread.
Definition: thread.cpp:16
virtual ~Thread()
Deletes safely the thread, if it not joined, join()
Definition: thread.cpp:45
void usleep(unsigned int us)
Sleeps for value in micro-seconds.
Definition: thread.cpp:28
void operator()()
Thread as a functor, same as start().
Definition: thread.cpp:12
void sleep(const std::chrono::duration< Rep, Period > &duration)
Wrapper of std::this_thread::sleep_for.
Definition: thread.h:65
Thread()
Construct a new Thread object.
Definition: thread.cpp:10