#pragma once #include 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; };