update_thread.h 318 B

1234567891011121314151617181920212223
  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. bool running();
  13. private:
  14. void run();
  15. private:
  16. SocketClient* _client;
  17. std::thread _thread;
  18. bool _run;
  19. };