XZ Utils
5.4.1
|
Get the number of CPU threads or cores. More...
Functions | |
uint32_t | lzma_cputhreads (void) |
Get the number of processor cores or threads. More... | |
Get the number of CPU threads or cores.
uint32_t lzma_cputhreads | ( | void | ) |
Get the number of processor cores or threads.
This function may be useful when determining how many threads to use. If the hardware supports more than one thread per CPU core, the number of hardware threads is returned if that information is available.
Referenced by hardware_memlimit_show(), and hardware_threads_set().