Get the number of threads currently being used by the virtual machine.
()
| 62 | _nthreads = numexpr3.interpreter.set_num_threads( _nthreads ) |
| 63 | |
| 64 | def get_nthreads() -> int: |
| 65 | """Get the number of threads currently being used by the virtual machine.""" |
| 66 | global _nthreads |
| 67 | _nthreads = numexpr3.interpreter.get_num_threads() |
| 68 | return _nthreads |
| 69 | |
| 70 | def set_nthreads(new_nthreads: int) -> None: |
| 71 | """ |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…