Tor
0.4.7.0-alpha-dev
|
Go to the source code of this file.
Functions | |
int | compute_num_cpus (void) |
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().