[issue12655] Expose sched.h functions
STINNER Victor
report at bugs.python.org
Sat Aug 4 02:31:31 CEST 2012
STINNER Victor added the comment:
I'm sorry, I missed this issue. I just saw its API and I have remarks on the cpu_set type:
* Why not reusing the set type for input parameters and the result of sched_getaffinity?
* Method names of cpu_set are very different than names of the set type
* Why do I need to specify the number of CPU?
signal.pthread_sigmask() accepts any iterable object as input, convert it to a sigset_t. For the result, it converts the new sigset_t to a classic Python set object.
Is it possible to get the number of CPU to be able to convert a Python set to a cpu_set?
----------
nosy: +haypo
resolution: fixed ->
status: closed -> open
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12655>
_______________________________________
More information about the Python-bugs-list
mailing list