2
0
mirror of https://github.com/vasi/pixz synced 2024-11-18 15:26:46 +00:00
pixz/cpu.c

6 lines
92 B
C

#include <unistd.h>
size_t num_threads(void) {
return sysconf(_SC_NPROCESSORS_ONLN);
}