Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/HAL > API/Runtime/Core/HAL/FRunnableThread
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/HAL/RunnableThread.h |
| Include | #include "HAL/RunnableThread.h" |
virtual bool SetThreadAffinity
(
const FThreadAffinity & Affinity
)
Remarks
Changes the thread affinity of the currently running thread returns true if the affinity changed, false if affinity did not change
Parameters
| Name | Description |
|---|---|
| ThreadAffinityMask | The thread affinity to change to (can be 0 to keep previously set affinity mask) |
| ProcessorGroup | The thread group to change to |