UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RaceDetectorInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
6
7#if USING_INSTRUMENTATION
8
9#include "CoreTypes.h"
11
13
14namespace UE::Sanitizer::RaceDetector {
15
16 // Returns whether we should instrument depending on the current context state.
17 bool ShouldInstrument(FContext& Context);
18 // Gets the current thread context, could be nullptr.
19 FContext* GetThreadContext();
20 // Hints the sanitizer that this memory range is being freed.
21 void FreeMemoryRange(void* Ptr, uint64 Size);
22
23 // Makes sure the current thread has a context and returns it.
24 FContext& EnsureCurrentContext();
25 // Releases the current thread context.
27 // Returns a sync object for the given address, initialize one if there isn't one already.
29}
30
31#endif // USING_INSTRUMENTATION
FPlatformTypes::uint64 uint64
A 64-bit unsigned integer.
Definition Platform.h:1117
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_LOG_CATEGORY_EXTERN(CategoryName, DefaultVerbosity, CompileTimeVerbosity)
Definition LogMacros.h:361
uint32 Size
Definition VulkanMemory.cpp:4034