Module |
|
Header |
/Engine/Source/Runtime/MessagingCommon/Public/MessageEndpoint.h |
Include |
#include "MessageEndpoint.h" |
void SetRecipientThread
(
const ENamedThreads::Type & NamedThread
)
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.
Parameter |
Description |
---|---|
NamedThread |
The name of the thread to receive messages on. |