mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
24 lines
545 B
C++
24 lines
545 B
C++
#include "../Interface/Thread.h"
|
|
#include "../Interface/Mutex.h"
|
|
|
|
class ClientMain;
|
|
|
|
class ServerPingThread : public IThread
|
|
{
|
|
public:
|
|
ServerPingThread(ClientMain *client_main, const std::string& clientname,
|
|
size_t status_id, bool with_eta, std::string server_token);
|
|
void operator()(void);
|
|
void setStop(bool b);
|
|
|
|
bool isTimeout(void);
|
|
|
|
private:
|
|
ClientMain *client_main;
|
|
volatile bool stop;
|
|
volatile bool is_timeout;
|
|
bool with_eta;
|
|
const std::string& clientname;
|
|
size_t status_id;
|
|
std::string server_token;
|
|
}; |