MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / Py_ops_getNumThreads

Function Py_ops_getNumThreads

SRC/interpreter/PythonWrapper.cpp:2778–2788  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2776}
2777
2778static PyObject *Py_ops_getNumThreads(PyObject *self, PyObject *args)
2779{
2780 wrapper->resetCommandLine(PyTuple_Size(args), 1, args);
2781
2782 if (OPS_getNumThreads() < 0) {
2783 opserr<<(void*)0;
2784 return NULL;
2785 }
2786
2787 return wrapper->getResults();
2788}
2789
2790static PyObject *Py_ops_setNumThreads(PyObject *self, PyObject *args)
2791{

Callers

nothing calls this directly

Calls 3

OPS_getNumThreadsFunction · 0.85
getResultsMethod · 0.80
resetCommandLineMethod · 0.45

Tested by

no test coverage detected