class
ThreadAffinityPolicy
Assigns thread affinities to threads according to a particular policy.
Public
Methods
~ThreadAffinityPolicy
virtual ~ThreadAffinityPolicy() noexcept = default
GetMaskForThread
Returns a mask that lets the caller know on which cores can the thread be executed on.
- threadIndex
- Index of the thread for which to determine affinity. It's best these are sequential so cores can be distributed in a round-robin fashion, for policies where that matters.
Returns: Returns mask that determines on which cores should the thread run on.