sim_thread.h 337 B

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