picloud add "-w" option for watchdog
This commit is contained in:
@@ -25,6 +25,8 @@ public:
|
||||
uint maxConnections() const { return max_connections; }
|
||||
EVENT_HANDLER0(void, picoutStatus);
|
||||
|
||||
void startWatchdog();
|
||||
|
||||
private:
|
||||
EVENT_HANDLER1(void, newConnection, PIEthernet *, cl);
|
||||
EVENT_HANDLER1(void, disconnectClient, DispatcherClient *, client);
|
||||
@@ -40,6 +42,7 @@ private:
|
||||
PIVector<CloudServer *> rmrf_servers;
|
||||
PITimer timeout_timer;
|
||||
PIMutex map_mutex;
|
||||
std::atomic_int wd_cnt = {0};
|
||||
uint client_gid;
|
||||
uint max_connections;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user