FRunnableThreadUnix::SetupSignalHandlerStack

Sets up an alt stack for signal (including crash) handling on this thread.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Unix/UnixPlatformRunnableThread.h

Include

#include "Unix/UnixPlatformRunnableThread.h"

Syntax

static bool SetupSignalHandlerStack
(
    void * StackBuffer,
    const size_t StackBufferSize,
    void ** OutStackGuardPageAddress
)

Remarks

Sets up an alt stack for signal (including crash) handling on this thread.

This includes guard page at the end of the stack to make running out of stack more obvious. Should be run in the context of the thread.

Returns

true if setting the alt stack succeeded. Inability to set guard page will not affect success of the operation.

Parameters

Parameter

Description

StackBuffer

pointer to the beginning of the stack buffer (note: on x86_64 will be the bottom of the stack, not its beginning)

StackSize

size of the stack buffer

OutStackGuardPageAddress

pointer to the variable that will receive the address of the guard page. Can be null. Will not be set if guard page wasn't successfully set.

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