YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
Thread.cpp
Go to the documentation of this file.
1
#include "
YAPOG/System/Thread/Thread.hpp
"
2
3
namespace
yap
4
{
5
Thread::Thread
(
WorkerType
worker)
6
: thread_ (worker)
7
{
8
}
9
10
void
Thread::Launch
()
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
YAPOG
src
YAPOG
System
Thread
Thread.cpp
Generated on Mon Sep 17 2012 22:24:26 for YAPOG by
1.8.1.1