current_thread_count

Function current_thread_count 

Source
pub fn current_thread_count() -> usize
Expand description

Return the number of worker threads currently active in the shared pool.

This value reflects either hardware parallelism or the override supplied via LLKV_MAX_THREADS. The count may change if the environment variable differs between runs, but remains stable for the lifetime of the process.