[−][src]Function splashsurf_lib::initialize_thread_pool
pub fn initialize_thread_pool(num_threads: usize) -> Result<(), Error>
Initializes the global thread pool used by this library with the given parameters.
Initialization of the global thread pool happens exactly once.
Therefore, if you call initialize_thread_pool
a second time, it will return an error.
An Ok
result indicates that this is the first initialization of the thread pool.