Function mlir_sys::mlirContextSetThreadPool
source · pub unsafe extern "C" fn mlirContextSetThreadPool(
context: MlirContext,
threadPool: MlirLlvmThreadPool
)
Expand description
Sets the thread pool of the context explicitly, enabling multithreading in the process. This API should be used to avoid re-creating thread pools in long-running applications that perform multiple compilations, see the C++ documentation for MLIRContext for details.