Function MSContextSetThreadAffinityCoreList

Function Documentation

void MSContextSetThreadAffinityCoreList(MSContextHandle context, const int32_t *core_list, size_t core_num)

Set the thread lists to CPU cores.

Note

If core_list and mode are set by MSContextSetThreadAffinityMode at the same time, the core_list is effective, but the mode is not effective.

Parameters
  • context[in] Context object handle.

  • core_list[in] a array of thread core lists.

  • core_num[in] The number of core.