Return the global threadpool controller instance.
()
| 185 | |
| 186 | |
| 187 | def _get_threadpool_controller(): |
| 188 | """Return the global threadpool controller instance.""" |
| 189 | global _threadpool_controller |
| 190 | |
| 191 | if _threadpool_controller is None: |
| 192 | _threadpool_controller = ThreadpoolController() |
| 193 | |
| 194 | return _threadpool_controller |
| 195 | |
| 196 | |
| 197 | def _threadpool_controller_decorator(limits=1, user_api="blas"): |
no outgoing calls
searching dependent graphs…