Navigation
API > API/Runtime > API/Runtime/MessagingCommon > API/Runtime/MessagingCommon/FMessageEndpoint
Description
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.
| Name | SetRecipientThread |
| Type | function |
| Header File | /Engine/Source/Runtime/MessagingCommon/Public/MessageEndpoint.h |
| Include Path | #include "MessageEndpoint.h" |
void SetRecipientThread
(
const ENamedThreads::Type & NamedThread
)
Parameters
| Name | Remarks |
|---|---|
| NamedThread | The name of the thread to receive messages on. |