UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Threading.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#if __has_include(ULANG_PLATFORM_HEADER_NAME_WITH_PREFIX(uLang/Common/Platform,Threading.h))
8
9 // Allow the platform to provide threading implementation.
10 #include ULANG_PLATFORM_HEADER_NAME_WITH_PREFIX(uLang/Common/Platform,Threading.h)
11
12#elif defined(__clang__) || defined(__GNUC__)
13
14 // Generic implementation for GCC/Clang compilers
15 namespace uLang
16 {
18 {
20 }
21
23 {
25 }
26 }
27
28#else
29
30 #error No platform Threading.h header provided.
31
32#endif
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