# BMA Server Framework: /home/barant/Development/BMA/server_core/ServerCore/Thread.h Source File

/home/barant/Development/BMA/server_core/ServerCore/Thread.h
#ifndef __Thread_h__
#define __Thread_h__
#include "includes"
#include "Log.h"
#include "Object.h"
#include "Session.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(Session *session);
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::EPoll
Definition: EPoll.h:31
core
Definition: Command.cpp:4
core::Session
Definition: Session.h:22
core::Thread
Definition: Thread.h:21
core::Thread::start
void start()
Definition: Thread.cpp:10
core::Object
Definition: Object.h:8