Lines Matching full:pthreads
316 static int pyrf_thread_map__init(struct pyrf_thread_map *pthreads,
326 pthreads->threads = thread_map__new(pid, tid);
327 if (pthreads->threads == NULL)
332 static void pyrf_thread_map__delete(struct pyrf_thread_map *pthreads)
334 thread_map__delete(pthreads->threads);
335 pthreads->ob_type->tp_free((PyObject*)pthreads);
340 struct pyrf_thread_map *pthreads = (void *)obj;
342 return pthreads->threads->nr;
347 struct pyrf_thread_map *pthreads = (void *)obj;
349 if (i >= pthreads->threads->nr)
352 return Py_BuildValue("i", pthreads->threads->map[i]);
500 PyObject *pcpus = NULL, *pthreads = NULL;
505 &pcpus, &pthreads, &group, &inherit))
508 if (pthreads != NULL)
509 threads = ((struct pyrf_thread_map *)pthreads)->threads;
562 PyObject *pcpus = NULL, *pthreads = NULL;
566 if (!PyArg_ParseTuple(args, "OO", &pcpus, &pthreads))
569 threads = ((struct pyrf_thread_map *)pthreads)->threads;