/home/barant/Development/BMA/server_core/ServerCore/BMAThread.h
#ifndef __BMAThread_h__
#define __BMAThread_h__
#include "includes"
#include "BMALog.h"
#include "BMAObject.h"
class BMAEPoll;
class BMAThread : public BMAObject {
public:
BMAThread(BMAEPoll &ePoll);
~BMAThread();
void start();
void join();
std::string getStatus();
pid_t getThreadId();
int getCount();
void output(BMASession *session);
private:
BMAEPoll &ePoll; // The EPoll control object.
std::string status;
int count;
std::thread *_thread;
void print_thread_start_log();
pid_t threadId;
void run();
};
#endif
BMAThread::start
void start()
Definition: BMAThread.cpp:8
BMAThread
Definition: BMAThread.h:17
BMAEPoll
Definition: BMAEPoll.h:29
BMASession
Definition: BMASession.h:18
BMAObject
Definition: BMAObject.h:6