[issue12655] Expose sched.h functions
Antoine Pitrou
report at bugs.python.org
Sat Aug 4 02:35:02 CEST 2012
Antoine Pitrou added the comment:
> Is it possible to get the number of CPU to be able to convert a Python
> set to a cpu_set?
sched_getaffinity returns EINVAL if the cpu_set is too small, so it should be easy enough to iterate.
I agree the API should be changed for something saner, and before 3.3. Sorry for not looking at the patch in more detail when it was first submitted. I will try to cook up a new patch this week-end.
----------
nosy: +georg.brandl
priority: normal -> release blocker
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12655>
_______________________________________
More information about the Python-bugs-list
mailing list