Lunchbox  1.12.0
Multi-threaded C++ toolbox library for all application developers creating high-performance multi-threaded programs.
lunchbox::OMP Class Reference

Base class for OpenMP functionality. More...

#include <omp.h>

+ Collaboration diagram for lunchbox::OMP:

Static Public Member Functions

static LUNCHBOX_API unsigned getNThreads ()
 
static LUNCHBOX_API void setNThreads (unsigned nThreads)
 Set the maximum number of threads. More...
 
static LUNCHBOX_API int getThreadNum ()
 

Detailed Description

Base class for OpenMP functionality.

Implements dummy calls if the compiler does not support OpenMP

Definition at line 34 of file omp.h.

Member Function Documentation

static LUNCHBOX_API unsigned lunchbox::OMP::getNThreads ( )
static
Returns
the number of threads used in a parallel region.
Version
1.0
static LUNCHBOX_API int lunchbox::OMP::getThreadNum ( )
static
Returns
the id of the current OpenMP thread, or 0 if OpenMP is not used.
Version
1.11
static LUNCHBOX_API void lunchbox::OMP::setNThreads ( unsigned  nThreads)
static

Set the maximum number of threads.

Version
1.12

The documentation for this class was generated from the following file: