FAsyncWriter

Thread heartbeat check class.

Windows
MacOS
Linux

Inheritance Hierarchy

FRunnable

FArchive

FAsyncWriter

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Misc/OutputDeviceFile.h

Include

#include "Misc/OutputDeviceFile.h"

Syntax

class FAsyncWriter :
    public FRunnable,
    public FArchive

Remarks

Thread heartbeat check class. Used by crash handling code to check for hangs. [] tags identify which thread owns a variable or function

Constructors

Name Description

Public function

FAsyncWriter

(
    FArchive& InAr
)

Destructors

Name Description

Public function Virtual

~FAsyncWriter()

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.

Overridden from FArchive

Name Description

Public function Virtual

void

 

Flush()

Flush all buffers to disk

Public function Virtual

void

 

Serialize

(
    void* InData,
    int64 Length
)

[CLIENT THREAD] Serialize data to buffer that will later be saved to disk by the async thread

Enums

Name

Description

Private enum

EConstants

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