3#ifdef ALIGATOR_MULTITHREADING
12#ifdef ALIGATOR_MULTITHREADING
14 return std::size_t(omp_get_max_threads());
19 return std::size_t(omp_get_num_threads());
23inline std::size_t
get_thread_id() {
return std::size_t(omp_get_thread_num()); }
26 omp_set_num_threads(
int(num_threads));
27 omp_set_dynamic(
int(dynamic));
std::size_t get_current_threads()
Get the current number of threads.
std::size_t get_thread_id()
Get the current thread ID.
void set_default_options(std::size_t, bool=true)
std::size_t get_available_threads()