FGenericPlatformAtomics

DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated.

Windows
MacOS
Linux

Inheritance Hierarchy

FGenericPlatformAtomics

FClangPlatformAtomics

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformAtomics.h

Include

#include "GenericPlatform/GenericPlatformAtomics.h"

Syntax

struct FGenericPlatformAtomics

Remarks

DEPRECATED! UE atomics are not maintained and potentially will be physically deprecated. Use std::atomic<T> for new code

Generic implementation...you are required to implement at least FPlatformAtomics::InterlockedCompareExchange but they are listed here to provide a base implementation in terms of FPlatformAtomics::InterlockedCompareExchange and easy copy-paste

Functions

Name Description

Public function Static

bool

 

CanUseCompareExchange128()

Protected function Static

bool

 

IsAligned

(
    const volatile void* Ptr,
    const uint32 Alignment
)

Checks if a pointer is aligned and can be used with atomic functions.

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