UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
WindowsThreading.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6#include <intrin.h>
7
8namespace uLang
9{
11 {
12 return ::_InterlockedCompareExchange((long*)Value, (long)ReplaceWithThis, (long)IfEqualToThis);
13 }
14
16 {
17 return ::_InterlockedCompareExchangePointer(Value, ReplaceWithThis, IfEqualToThis);
18 }
19}
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define ULANG_FORCEINLINE
Definition Common.h:188
Definition VVMEngineEnvironment.h:23
ULANG_FORCEINLINE uint32_t InterlockedCompareExchange(volatile uint32_t *Value, uint32_t ReplaceWithThis, uint32_t IfEqualToThis)
Definition WindowsThreading.h:10