mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Detect server deadlocks and trigger the auto-restart mechanism.
This commit is contained in:
@@ -106,6 +106,8 @@ protected:
|
||||
int mUptime;
|
||||
int mSpace2[4];
|
||||
|
||||
int mDeadLock; // Detect server deadlocks
|
||||
|
||||
mutable boost::mutex mLock;
|
||||
|
||||
void canonicalize(LoadSource&, int upTime) const;
|
||||
@@ -141,6 +143,7 @@ public:
|
||||
|
||||
int getCost(LoadType t) { return mCosts[static_cast<int>(t)].mCost; }
|
||||
int getUptime();
|
||||
void noDeadLock();
|
||||
};
|
||||
|
||||
class LoadFeeTrack
|
||||
|
||||
Reference in New Issue
Block a user