Function MSContextSetThreadAffinityCoreList

Function Documentation

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

Set the thread lists to CPU cores.

说明

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

参数
  • context[in] Context object handle.

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

  • core_num[in] The number of core.