Skip to content
This repository
tree: c5f99bf4b4
Fetching contributors…

Cannot retrieve contributors at this time

file 5 lines (4 sloc) 0.092 kb
1 2 3 4 5
#include <unistd.h>

size_t num_threads(void) {
    return sysconf(_SC_NPROCESSORS_ONLN);
}
Something went wrong with that request. Please try again.