Re: [Python-Dev] cpython: expose sched.h functions (closes #12655)
3 Aug
2011
3 Aug
'11
8:22 a.m.
Am 03.08.2011 00:30, schrieb benjamin.peterson:
http://hg.python.org/cpython/rev/89e92e684b37 changeset: 71704:89e92e684b37 user: Benjamin Peterson
date: Tue Aug 02 17:30:04 2011 -0500 summary: expose sched.h functions (closes #12655)
+static PyObject * +posix_sched_setaffinity(PyObject *self, PyObject *args) +{ + pid_t pid; + Py_cpu_set *cpu_set; + + if (!PyArg_ParseTuple(args, _Py_PARSE_PID "O!|sched_setaffinity",
[...]
+static PyObject * +posix_sched_getaffinity(PyObject *self, PyObject *args) +{ + pid_t pid; + int ncpus; + Py_cpu_set *res; + + if (!PyArg_ParseTuple(args, _Py_PARSE_PID "i|sched_getaffinity",
These should be separated by ":", not "|", if I'm not mistaken? Georg
4649
Age (days ago)
4649
Last active (days ago)
0 comments
1 participants
participants (1)
-
Georg Brandl