Menu

#512 pthread_getaffinity_np and pthread_set_affinity_np aren't implemented

v1.0 (example)
open-accepted
nobody
None
5
2015-11-21
2015-11-21
No

The two common pthread extensions pthread_getaffinity_np(pthread_t thread, size_t cpusetsize, cpu_set_t cpuset) and pthread_setaffinity_np(pthread_t thread, size_t cpusetsize, const cpu_set_t cpuset) aren't implemented.

I believe these can be implemented in terms of GetThreadGroupAffinity and SetThreadAffinityMask.

Discussion

  • Kai Tietz

    Kai Tietz - 2015-11-21
    • status: open --> open-accepted
     
  • Kai Tietz

    Kai Tietz - 2015-11-21

    Hi Jason,

    yes we could use 'SetThreadAffinityMask' API to implement it. Of course API needs to be resolved dynamically as it is just available for Windows 7 and above.

     

Log in to post a comment.