Thread.h
Go to the documentation of this file.
#ifndef __Thread_h__
#define __Thread_h__
#include "includes"
#include "Log.h"
#include "Object.h"
#include "TCPSession.h"
namespace core {
class EPoll;
class Thread : public Object {
public:
Thread(EPoll &ePoll);
~Thread();
void start();
void join();
std::string getStatus();
pid_t getThreadId();
int getCount();
void output(std::stringstream &data);
private:
EPoll &ePoll; // The EPoll control object.
std::string status;
int count;
std::thread *_thread;
void print_thread_start_log();
pid_t threadId;
void run();
};
}
#endif
core::Thread::getStatus
std::string getStatus()
Definition: Thread.cpp:18
core::EPoll
Definition: EPoll.h:31
core::Thread::getThreadId
pid_t getThreadId()
Definition: Thread.cpp:22
core::Thread::start
void start()
Definition: Thread.cpp:10
core::Thread::getCount
int getCount()
Definition: Thread.cpp:26
core::Thread::join
void join()
Definition: Thread.cpp:14
core::Thread
Definition: Thread.h:21
core::Thread::Thread
Thread(EPoll &ePoll)
Definition: Thread.cpp:6
TCPSession.h
core
Definition: Command.cpp:5
core::Object
Definition: Object.h:8
core::Thread::output
void output(std::stringstream &data)
Definition: Thread.cpp:30
Object.h
core::Thread::~Thread
~Thread()
Definition: Thread.cpp:8