From 684e00a15e80bbdf8a1644fe8b5a230eff32e763 Mon Sep 17 00:00:00 2001 From: danny couture Date: Wed, 12 Oct 2022 13:39:40 -0400 Subject: [PATCH] Fix potential race condition on multicast delegate used from multiple threads #rb Martin.Ridgers, Ionut.Matasaru #preflight 6346a435fa31324bb133affb [CL 22481908 by danny couture in ue5-main branch] --- .../Runtime/Core/Public/ProfilingDebugging/TraceAuxiliary.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Engine/Source/Runtime/Core/Public/ProfilingDebugging/TraceAuxiliary.h b/Engine/Source/Runtime/Core/Public/ProfilingDebugging/TraceAuxiliary.h index 58e4d2c3b6d9..e9904e111759 100644 --- a/Engine/Source/Runtime/Core/Public/ProfilingDebugging/TraceAuxiliary.h +++ b/Engine/Source/Runtime/Core/Public/ProfilingDebugging/TraceAuxiliary.h @@ -43,17 +43,17 @@ public: /** * Callback type when a new connection is established. */ - DECLARE_MULTICAST_DELEGATE(FOnConnection); + DECLARE_TS_MULTICAST_DELEGATE(FOnConnection); /** Callback whenever a trace is started */ - DECLARE_MULTICAST_DELEGATE_TwoParams(FOnTraceStarted, FTraceAuxiliary::EConnectionType TraceType, const FString& TraceDestination); + DECLARE_TS_MULTICAST_DELEGATE_TwoParams(FOnTraceStarted, FTraceAuxiliary::EConnectionType TraceType, const FString& TraceDestination); /** * Callback whenever a trace recording is stopped. * TraceType tells what kind of trace it is. * TraceDestination will be either the the filename and path for a file trace or the network connection for a network trace */ - DECLARE_MULTICAST_DELEGATE_TwoParams(FOnTraceStopped, FTraceAuxiliary::EConnectionType TraceType, const FString& TraceDestination); + DECLARE_TS_MULTICAST_DELEGATE_TwoParams(FOnTraceStopped, FTraceAuxiliary::EConnectionType TraceType, const FString& TraceDestination); struct FOptions {