Skip to main content

SetThreading

Function SetThreading 

Source
pub unsafe extern "C" fn SetThreading(code: c_int) -> c_int
Expand description

@brief Set the threading backend used by the solver.

@deprecated Use SolverContext instead - threading is implicit (one context per thread). See docs/api_migration.md for modern C++ API examples.

@param code Threading backend code (see documentation) @return 1 on success, error code otherwise

This function is part of the legacy C API and is maintained for backward compatibility. The modern C++ API does not require threading configuration; instead, create one SolverContext instance per thread.