YAPOG  0.0.1
Yet Another Pokemon Online Game
Thread.cpp
Go to the documentation of this file.
2 
3 namespace yap
4 {
6  : thread_ (worker)
7  {
8  }
9 
11  {
12  thread_.launch ();
13  }
14 
15  void Thread::Stop ()
16  {
17  thread_.terminate ();
18  }
19 
20  void Thread::Wait ()
21  {
22  thread_.wait ();
23  }
24 
25  void Thread::Sleep (const Time& dt)
26  {
27  sf::sleep (sf::seconds (dt.GetValue ()));
28  }
29 } // namespace yap