FGenericPlatformAtomics

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

Choose your operating system:

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.