Navigation
Unreal Engine C++ API Reference > Runtime > MessagingCommon > FMessageEndpoint
References
Module | MessagingCommon |
Header | /Engine/Source/Runtime/MessagingCommon/Public/MessageEndpoint.h |
Include | #include "MessageEndpoint.h" |
static void SafeRelease
&40;
TSharedPtr< FMessageEndpoint, ESPMode::ThreadSafe > & Endpoint
&41;
Remarks
Safely releases a message endpoint that is receiving messages on AnyThread.
When an object that owns a message endpoint receiving on AnyThread is being destroyed, it is possible that the endpoint can outlive the object for a brief period of time if the Messaging system is dispatching messages to it. This helper function is to block the calling thread while any messages are being dispatched, so that the endpoint does not invoke any message handlers after the object has been destroyed.
Parameters
Name | Description |
---|---|
Endpoint | The message endpoint to release. |