TrinityCore
FreezeDetector Class Reference

Public Member Functions

 FreezeDetector (Trinity::Asio::IoContext &ioContext, uint32 maxCoreStuckTime)
 

Static Public Member Functions

static void Start (std::shared_ptr< FreezeDetector > const &freezeDetector)
 
static void Handler (std::weak_ptr< FreezeDetector > freezeDetectorRef, boost::system::error_code const &error)
 

Private Attributes

Trinity::Asio::DeadlineTimer _timer
 
uint32 _worldLoopCounter
 
uint32 _lastChangeMsTime
 
uint32 _maxCoreStuckTimeInMs
 

Detailed Description

Definition at line 98 of file Main.cpp.

Constructor & Destructor Documentation

◆ FreezeDetector()

FreezeDetector::FreezeDetector ( Trinity::Asio::IoContext ioContext,
uint32  maxCoreStuckTime 
)
inline

Definition at line 101 of file Main.cpp.

Member Function Documentation

◆ Start()

static void FreezeDetector::Start ( std::shared_ptr< FreezeDetector > const &  freezeDetector)
inlinestatic

Definition at line 104 of file Main.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _lastChangeMsTime

uint32 FreezeDetector::_lastChangeMsTime
private

Definition at line 118 of file Main.cpp.

◆ _maxCoreStuckTimeInMs

uint32 FreezeDetector::_maxCoreStuckTimeInMs
private

Definition at line 119 of file Main.cpp.

◆ _timer

Trinity::Asio::DeadlineTimer FreezeDetector::_timer
private

Definition at line 116 of file Main.cpp.

◆ _worldLoopCounter

uint32 FreezeDetector::_worldLoopCounter
private

Definition at line 117 of file Main.cpp.


The documentation for this class was generated from the following file: