Skip to content
Orbdale

Orbdale Terrain · OrbdaleTerrainCore module · member function

Native::TAtomicSharedPtr::

exchange

Replace the pointer and return the previous one.

Declaration

FValue exchange(FValue Desired, std::memory_order = std::memory_order_seq_cst);
Header
#include "Native/AtomicSharedPtr.h"
Module
PublicDependencyModuleNames.Add("OrbdaleTerrainCore"); in your module’s Build.cs.
Stability
Stable: changes within a major version only add.
Thread
load: any thread. (the rule of TAtomicSharedPtr)

Parameters

NameTypeDefaultMeaning
DesiredFValue——
unnamedstd::memory_orderstd::memory_order_seq_cst—

Returns

The previous pointer; the caller decides where its pointee is released, outside this wrapper's lock.