1234567891011121314151617181920212223 |
- #pragma once
- #include<thread>
- class SocketClient;
- class INativeNotify;
- class CUpdateThread
- {
- public:
-
- CUpdateThread();
-
- ~CUpdateThread();
- void start(SocketClient *c);
- void stop();
- bool running();
-
- private:
- void run();
- private:
- SocketClient* _client;
- std::thread _thread;
- bool _run;
-
- };
|