aligator  0.16.0
A versatile and efficient C++ library for real-time constrained trajectory optimization.
Loading...
Searching...
No Matches
aligator::omp Namespace Reference

Utilities to set parallelism options. More...

Functions

std::size_t get_available_threads ()
 
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 num_threads, bool dynamic=true)
 

Detailed Description

Utilities to set parallelism options.

Function Documentation

◆ get_available_threads()

std::size_t aligator::omp::get_available_threads ( )
inline

Definition at line 13 of file threads.hpp.

◆ get_current_threads()

std::size_t aligator::omp::get_current_threads ( )
inline

Get the current number of threads.

Definition at line 18 of file threads.hpp.

◆ get_thread_id()

std::size_t aligator::omp::get_thread_id ( )
inline

Get the current thread ID.

Definition at line 23 of file threads.hpp.

◆ set_default_options()

void aligator::omp::set_default_options ( std::size_t num_threads,
bool dynamic = true )
inline

Definition at line 25 of file threads.hpp.