Home
last modified time | relevance | path

Searched refs:cpu_count (Results 1 – 3 of 3) sorted by relevance

/libuv/docs/code/multi-echo-server/
H A Dmain.c67 int cpu_count; in setup_workers() local
68 uv_cpu_info(&info, &cpu_count); in setup_workers()
69 uv_free_cpu_info(info, cpu_count); in setup_workers()
71 child_worker_count = cpu_count; in setup_workers()
73 workers = calloc(cpu_count, sizeof(struct child_worker)); in setup_workers()
74 while (cpu_count--) { in setup_workers()
75 struct child_worker *worker = &workers[cpu_count]; in setup_workers()
/libuv/src/unix/
H A Dhaiku.c158 *cpu_infos = uv__calloc(system.cpu_count, sizeof(**cpu_infos)); in uv_cpu_info()
164 for (i = 0; i < (int)system.cpu_count; i++) { in uv_cpu_info()
169 *count = system.cpu_count; in uv_cpu_info()
/libuv/src/win/
H A Dutil.c534 DWORD cpu_count, i; in uv_cpu_info() local
541 cpu_count = 0; in uv_cpu_info()
547 cpu_count = system_info.dwNumberOfProcessors; in uv_cpu_info()
549 cpu_infos = uv__calloc(cpu_count, sizeof *cpu_infos); in uv_cpu_info()
555 sppi_size = cpu_count * sizeof(*sppi); in uv_cpu_info()
573 for (i = 0; i < cpu_count; i++) { in uv_cpu_info()
635 *cpu_count_ptr = cpu_count; in uv_cpu_info()
643 for (i = 0; i < cpu_count; i++) in uv_cpu_info()

Completed in 10 milliseconds