omp_set_num_threads

void omp_set_num_threads(int num_threads)
Sets the number of threads that will be used in the next parallel region