My Project
Thread.h
1
#ifndef __Thread_h__
2
#define __Thread_h__
3
4
#include "includes"
5
#include "Log.h"
6
#include "Object.h"
7
#include "TCPSession.h"
8
9
namespace
core
{
10
11
class
EPoll;
12
20
21
class
Thread
:
public
Object
{
22
23
public
:
24
Thread
(
EPoll
&ePoll);
25
~
Thread
();
26
30
31
void
start
();
32
void
join();
33
std::string getStatus();
34
pid_t getThreadId();
35
int
getCount();
36
void
output(std::stringstream &data);
37
38
private
:
39
EPoll
&ePoll;
// The EPoll control object.
40
std::string status;
41
int
count;
42
std::thread *_thread;
43
void
print_thread_start_log();
44
pid_t threadId;
45
void
run();
46
47
};
48
49
}
50
51
#endif
core::Thread
Definition:
Thread.h:21
core
Definition:
Command.cpp:4
core::EPoll
Definition:
EPoll.h:31
core::Object
Definition:
Object.h:8
core::Thread::start
void start()
Definition:
Thread.cpp:10
Generated by
1.8.13