update_thread.h 299 B

12345678910111213141516171819202122
  1. #pragma once
  2. #include<thread>
  3. class SocketClient;
  4. class INativeNotify;
  5. class CUpdateThread
  6. {
  7. public:
  8. CUpdateThread();
  9. ~CUpdateThread();
  10. void start(SocketClient *c);
  11. void stop();
  12. private:
  13. void run();
  14. private:
  15. SocketClient* _client;
  16. std::thread _thread;
  17. bool _run;
  18. };