BMA Server Framework
/home/barant/Development/BMA/server_core/ServerCore/BMAThread.h
1 #ifndef __BMAThread_h__
2 #define __BMAThread_h__
3 
4 #include "includes"
5 #include "BMALog.h"
6 #include "BMAObject.h"
7 class BMAEPoll;
8 
16 
17 class BMAThread : public BMAObject {
18 
19  public:
20  BMAThread(BMAEPoll &ePoll);
21  ~BMAThread();
22 
26 
27  void start();
28  void join();
29  std::string getStatus();
30  pid_t getThreadId();
31  int getCount();
32  void output(BMASession *session);
33 
34  private:
35  BMAEPoll &ePoll; // The EPoll control object.
36  std::string status;
37  int count;
38  std::thread *_thread;
39  void print_thread_start_log();
40  pid_t threadId;
41  void run();
42 
43 };
44 
45 #endif
void start()
Definition: BMAThread.cpp:8
Definition: BMAThread.h:17
Definition: BMAEPoll.h:29
Definition: BMASession.h:18
Definition: BMAObject.h:6