Lunchbox  1.13.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 unsigned getNThreads ()
 
static void setNThreads (unsigned nThreads)
 Set the maximum number of threads. More...
 
static 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 unsigned lunchbox::OMP::getNThreads ( )
static
Returns
the number of threads used in a parallel region.
Version
1.0
static int lunchbox::OMP::getThreadNum ( )
static
Returns
the id of the current OpenMP thread, or 0 if OpenMP is not used.
Version
1.11
static 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: