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]
This commit is contained in:
danny couture
2022-10-12 13:39:40 -04:00
parent 99d9fc0fc3
commit 684e00a15e

View File

@@ -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
{