UDocumentation
UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
VVMThreadLocalContextHolder.h
Go to the documentation of this file.
1
// Copyright Epic Games, Inc. All Rights Reserved.
2
3
#pragma once
4
5
#if WITH_VERSE_VM || defined(__INTELLISENSE__)
6
7
#include "
VVMLog.h
"
8
9
namespace
Verse
10
{
11
struct
FContextImpl
;
12
13
// For use by FContextImpl.
14
struct
FThreadLocalContextHolder
15
{
16
FThreadLocalContextHolder
() =
default
;
17
COREUOBJECT_API
~FThreadLocalContextHolder
();
18
19
void
Set
(
FContextImpl
*
InContext
)
20
{
21
V_DIE_IF
(
Context
);
22
V_DIE_UNLESS
(
InContext
);
23
Context
=
InContext
;
24
}
25
26
FContextImpl
*
Get
()
const
27
{
28
return
Context
;
29
}
30
31
private
:
32
FContextImpl
*
Context
=
nullptr
;
33
};
34
35
}
// namespace Verse
36
#endif
// WITH_VERSE_VM
StaticCastSharedRef
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition
SharedPointer.h:127
EPropertyBagContainerType::Set
@ Set
VVMLog.h
EVulkanSyncPointType::Context
@ Context
ObjectPtr_Private::Get
FORCEINLINE T * Get(const FObjectPtr &ObjectPtr)
Definition
ObjectPtr.h:426
Verse
Definition
Archive.h:36
Engine
Source
Runtime
CoreUObject
Public
VerseVM
VVMThreadLocalContextHolder.h
Generated by
1.9.8