ESPMode

ESPMode is used select between either 'fast' or 'thread safe' shared pointer types.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Templates/SharedPointerInternals.h

Include

#include "Templates/SharedPointerInternals.h"

Syntax

enum ESPMode
{
    NotThreadSafe    = 0,
    Fast             = 0 ? 1 : 0,
    ThreadSafe       = 1,
}

Values

Name

Description

NotThreadSafe

Forced to be not thread-safe.

Fast

Fast, doesn't ever use atomic interlocks.

ThreadSafe

Conditionally thread-safe, never spin locks, but slower

Remarks

ESPMode is used select between either 'fast' or 'thread safe' shared pointer types. This is only used by templates at compile time to generate one code path or another.

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