core_thread.h 343 B

12345678910111213141516171819202122232425
  1. #ifndef CORE_THREAD_H
  2. #define CORE_THREAD_H
  3. #include "_thread.h"
  4. #include "fixed_types.h"
  5. #include "network.h"
  6. class CoreThread : public Runnable
  7. {
  8. public:
  9. CoreThread();
  10. ~CoreThread();
  11. void spawn();
  12. private:
  13. void run();
  14. static void terminateFunc(void *vp, NetPacket pkt);
  15. _Thread *m_thread;
  16. };
  17. #endif // CORE_THREAD_H