FThreadHeartBeat

Thread heartbeat check class. Used by crash handling code to check for hangs.

Windows
MacOS
Linux

Inheritance Hierarchy

FRunnable

FThreadHeartBeat

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/HAL/ThreadHeartBeat.h

Include

#include "HAL/ThreadHeartBeat.h"

Syntax

class FThreadHeartBeat : public FRunnable

Remarks

Thread heartbeat check class. Used by crash handling code to check for hangs.

Constructors

No constructors are accessible with public or protected access.

Destructors

No destructors are accessible with public or protected access.

Functions

Name Description

Public function

uint32

 

CheckHeartBeat

(
    double& OutHangDuration
)

Called by a supervising thread to check the threads' health

Public function Static

FThreadHeart...

 

Get()

Gets the heartbeat singleton

Public function Const

uint32

 

GetLastHungThreadId()

Get the Id of the last thread to trigger the hang detector.

Public function Static

FThreadHeart...

 

GetNoInit()

Gets the heartbeat singleton

Public function

void

 

HeartBeat

(
    bool bReadConfig
)

Called from a thread once per frame to update the heartbeat time

Public function

bool

 

IsBeating()

Returns true/false if this thread is currently performing heartbeat monitoring

Public function

void

 

KillHeartBeat()

Called by a thread when it's no longer expecting to be ticked

Public function

void

 

PresentFrame()

Called from the rendering or RHI thread when the platform RHI presents a frame (supported platforms only).

Public function

void

 

ResumeHeartBeat

(
    bool bAllThreads
)

Resume heartbeat measuring for the current thread

Public function

void

 

SetDurationMultiplier

(
    double NewMultiplier
)

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

Public function

void

 

Start()

Begin measuring heartbeat

Public function

void

 

SuspendHeartBeat

(
    bool bAllThreads
)

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

Overridden from FRunnable

Name Description

Public function Virtual

bool

 

Init()

Initializes the runnable object.

Public function Virtual

uint32

 

Run()

Runs the runnable object.

Public function Virtual

void

 

Stop()

Stops the runnable object.

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

Enums

Name

Description

Public enum

EConstants

Constants

Name

Description

Singleton

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss