GNU libmicrohttpd 1.0.1
|
Declaration of functions to detect the number of available CPU cores. More...
Go to the source code of this file.
Functions | |
int | mhd_tool_get_proc_cpu_count (void) |
int | mhd_tool_get_system_cpu_count (void) |
Declaration of functions to detect the number of available CPU cores.
Definition in file mhd_tool_get_cpu_count.h.
Detect the number of logical CPU cores available for the process. The number of cores available for this process could be different from value of cores available on the system. The OS may have limit on number assigned/allowed cores for single process and process may have limited CPU affinity.
Definition at line 524 of file mhd_tool_get_cpu_count.c.
References MHD_HTTP_OK, mhd_tool_get_proc_cpu_count_cpuset_getaffinity_(), mhd_tool_get_proc_cpu_count_sched_getaffinity_(), mhd_tool_get_proc_cpu_count_sched_getaffinity_np_(), and mhd_tool_get_proc_cpu_count_w32_().
Referenced by mhd_tool_get_system_cpu_count().
Try to detect the number of logical CPU cores available for the system. The number of available logical CPU cores could be changed any time due to CPU hotplug.
Definition at line 881 of file mhd_tool_get_cpu_count.c.
References MHD_HTTP_OK, mhd_tool_get_proc_cpu_count(), mhd_tool_get_sys_cpu_count_special_api_(), mhd_tool_get_sys_cpu_count_sysconf_(), mhd_tool_get_sys_cpu_count_sysconf_fallback_(), mhd_tool_get_sys_cpu_count_sysctl_(), and mhd_tool_get_sys_cpu_count_sysctl_fallback_().