Tor  0.4.7.0-alpha-dev
Functions
numcpus.h File Reference

Header for numcpus.c. More...

Go to the source code of this file.

Functions

int compute_num_cpus (void)
 

Detailed Description

Header for numcpus.c.

Definition in file numcpus.h.

Function Documentation

◆ compute_num_cpus()

int compute_num_cpus ( void  )

Return how many CPUs we are running with. We assume that nobody is using hot-swappable CPUs, so we don't recompute this after the first time. Return -1 if we don't know how to tell the number of CPUs on this system.

Definition at line 81 of file numcpus.c.

Referenced by get_num_cpus().