Navigation
Unreal Engine C++ API Reference > Runtime > MessagingCommon > FMessageEndpoint
References
Module | MessagingCommon |
Header | /Engine/Source/Runtime/MessagingCommon/Public/MessageEndpoint.h |
Include | #include "MessageEndpoint.h" |
void SetRecipientThread
&40;
const ENamedThreads::Type & NamedThread
&41;
Remarks
Sets the name of the thread to receive messages on.
Use this method to receive messages on a particular thread, for example, if the consumer owning this endpoint is not thread-safe. The default value is ThreadAny.
ThreadAny is the fastest way to receive messages. It should be used if the receiving code is completely thread-safe and if it is sufficiently fast. ThreadAny MUST NOT be used if the receiving code is not thread-safe. It also SHOULD NOT be used if the code includes time consuming operations, because it will block the message router, causing no other messages to be delivered in the meantime.
Parameters
Name | Description |
---|---|
NamedThread | The name of the thread to receive messages on. |