MCPcopy Create free account
hub / github.com/pydata/numexpr / PyGet_num_threads

Function PyGet_num_threads

numexpr3/module.cpp:280–288  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

278PyDoc_STRVAR(GetNumThreads__doc__,
279"Gets a maximum number of threads to be used in operations.\n");
280static PyObject*
281PyGet_num_threads(PyObject *self, PyObject *args) {
282 int n_thread;
283
284 pthread_mutex_lock(&gs.global_mutex);
285 n_thread = gs.n_thread;
286 pthread_mutex_unlock(&gs.global_mutex);
287 return Py_BuildValue("i", n_thread);
288 }
289
290
291Py_ssize_t numexpr_set_tempsize(Py_ssize_t newSize) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…