mirror of
https://github.com/uroni/urbackup_backend.git
synced 2025-10-26 11:36:50 +00:00
29 lines
509 B
C++
29 lines
509 B
C++
#include "../Interface/Thread.h"
|
|
#include "../Interface/Mutex.h"
|
|
#include "../Interface/Condition.h"
|
|
|
|
class ClientMain;
|
|
|
|
class ServerRunningUpdater : public IThread
|
|
{
|
|
public:
|
|
ServerRunningUpdater(int pBackupid, bool pImage);
|
|
~ServerRunningUpdater();
|
|
|
|
void operator()(void);
|
|
|
|
void stop(void);
|
|
void suspend(bool b);
|
|
|
|
void setBackupid(int pBackupid);
|
|
|
|
private:
|
|
volatile bool do_stop;
|
|
bool image;
|
|
int backupid;
|
|
volatile bool suspended;
|
|
|
|
IMutex *mutex;
|
|
ICondition *cond;
|
|
};
|