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.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback