Lunchbox  1.11.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 int getThreadNum ()
 

Detailed Description

Base class for OpenMP functionality.

Definition at line 30 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

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