engine
 
载入中...
搜索中...
未找到
Public 类型 | Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
FThreadHeartBeat类 参考

Thread heartbeat check class. 更多...

#include <ThreadHeartBeat.h>

+ 类 FThreadHeartBeat 继承关系图:

Public 类型

enum  EConstants { InvalidThreadId = (uint32)-1 , PresentThreadId = (uint32)-2 }
 

Public 成员函数

uint32 CheckFunctionHeartBeat (double &OutHangDuration)
 Called by a supervising thread to check all function calls' being monitored health
 
uint32 CheckHeartBeat (double &OutHangDuration)
 Called by a supervising thread to check the threads' health
 
void HeartBeat (bool bReadConfig=false)
 Called from a thread once per frame to update the heartbeat time
 
virtual bool Init ()
 Initializes the runnable object. 更多...
 
bool IsBeating ()
 Returns true/false if this thread is currently performing heartbeat monitoring
 
void KillHeartBeat ()
 Called by a thread when it's no longer expecting to be ticked
 
void MonitorFunctionEnd ()
 Called by a thread when a function has completed and no longer needs to be monitored
 
void MonitorFunctionStart ()
 Called from a thread once on entry to a function to be monitored
 
void PresentFrame ()
 Called from the rendering or RHI thread when the platform RHI presents a frame (supported platforms only).
 
void ResumeHeartBeat (bool bAllThreads=false)
 Resume heartbeat measuring for the current thread 更多...
 
virtual uint32 Run ()
 Runs the runnable object. 更多...
 
void SetDurationMultiplier (double NewMultiplier)
 Sets a multiplier to the hang duration (>= 1.0). 更多...
 
void Start ()
 Begin measuring heartbeat
 
virtual void Stop ()
 Stops the runnable object. 更多...
 
void SuspendHeartBeat (bool bAllThreads=false)
 Suspend heartbeat measuring for the current thread if the thread has already had a heartbeat 更多...
 
- Public 成员函数 继承自 FRunnable
virtual void Exit ()
 Exits the runnable object. 更多...
 
virtual class FSingleThreadRunnable * GetSingleThreadInterface ()
 Gets single thread interface pointer used for ticking this runnable when multi-threading is disabled. 更多...
 
virtual bool Init ()
 Initializes the runnable object. 更多...
 
virtual uint32 Run ()=0
 Runs the runnable object. 更多...
 
virtual void Stop ()
 Stops the runnable object. 更多...
 
virtual ~FRunnable ()
 Virtual destructor
 

静态 Public 成员函数

static FThreadHeartBeat & Get ()
 Gets the heartbeat singleton
 

详细描述

Thread heartbeat check class.

Used by crash handling code to check for hangs.

成员枚举类型说明

◆ EConstants

枚举值
InvalidThreadId 

Invalid thread Id used by CheckHeartBeat

PresentThreadId 

Id used to track presented frames (supported platforms only).

成员函数说明

◆ Init()

virtual bool FThreadHeartBeat::Init ( )
virtual

Initializes the runnable object.

This method is called in the context of the thread object that aggregates this, not the thread that passes this runnable to a new thread.

返回
True if initialization was successful, false otherwise
参见
Run, Stop, Exit

重载 FRunnable .

◆ ResumeHeartBeat()

void FThreadHeartBeat::ResumeHeartBeat ( bool  bAllThreads = false)

Resume heartbeat measuring for the current thread

参数
bAllThreadsIf true, resumes heartbeat for all threads, not only the current one

◆ Run()

virtual uint32 FThreadHeartBeat::Run ( )
virtual

Runs the runnable object.

This is where all per object thread work is done. This is only called if the initialization was successful.

返回
The exit code of the runnable object
参见
Init, Stop, Exit

实现了 FRunnable.

◆ SetDurationMultiplier()

void FThreadHeartBeat::SetDurationMultiplier ( double  NewMultiplier)

Sets a multiplier to the hang duration (>= 1.0).

Can be used to extend the duration during loading screens etc.

◆ Stop()

virtual void FThreadHeartBeat::Stop ( )
virtual

Stops the runnable object.

This is called if a thread is requested to terminate early.

参见
Init, Run, Exit

重载 FRunnable .

◆ SuspendHeartBeat()

void FThreadHeartBeat::SuspendHeartBeat ( bool  bAllThreads = false)

Suspend heartbeat measuring for the current thread if the thread has already had a heartbeat

参数
bAllThreadsIf true, suspends heartbeat for all threads, not only the current one

该类的文档由以下文件生成: