projects
/
fms.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
version 0.1.3
[fms.git]
/
include
/
pthreadwrapper
/
runnable.h
1
#ifndef _pthread_runnable_
\r
2
#define _pthread_runnable_
\r
3
\r
4
#include "thread.h"
\r
5
\r
6
namespace PThread
\r
7
{
\r
8
\r
9
class Thread;
\r
10
\r
11
class Runnable
\r
12
{
\r
13
public:
\r
14
Runnable():m_thread(0) {}
\r
15
~Runnable() {}
\r
16
\r
17
virtual void Run()=0;
\r
18
\r
19
protected:
\r
20
void Sleep(const long ms);
\r
21
const bool IsCancelled();
\r
22
\r
23
private:
\r
24
\r
25
friend Thread;
\r
26
Thread *m_thread;
\r
27
\r
28
};
\r
29
\r
30
} // namespace
\r
31
\r
32
#endif // _pthread_runnable_
\r