Thread information for OpenMP. More...
#include <openMPThreadInformation.hpp>
Static Public Member Functions | |
static int | getMaxThreads () |
Provides an upper bound on the number of threads. | |
static int | getThreadId () |
Returns the id of the calling thread. | |
Static Public Member Functions inherited from codi::ThreadInformationInterface | |
static int | getMaxThreads () |
Provides an upper bound on the number of threads. | |
static int | getThreadId () |
Returns the id of the calling thread. | |
Thread information for OpenMP.
|
inlinestatic |
Provides an upper bound on the number of threads.
Implementation: Limit applies to all threads, also those due to nesting.
|
inlinestatic |
Returns the id of the calling thread.
Thread ids are integers 0, 1, ..., maximum number of threads - 1.
Implementation: Returns custom IDs to account for nesting, in particular not omp_get_thread_num().