Admin Production ni-theme
Current Publication

omp_in_parallel

LabWindows/CVI

omp_in_parallel

int omp_in_parallel (void);

Purpose

Returns whether or not this function is called from an active parallel region.

Note Note  The OpenMP Run-Time Library is available only in the LabWindows/CVI Full Development System.

An active parallel region is one whose if clause evaluates to TRUE. If a region does not specify an if clause, this function returns TRUE.

This function always returns FALSE if called from the sequential part of the application.

Binding thread set: all threads

Parameters

None.

Return Value

Name Type Description
returnValue int Returns TRUE if this function is called from within an active parallel region. Otherwise it returns FALSE.

Additional Information

Library: OpenMP Run-Time Library

Include file: omp.h

LabWindows/CVI compatibility: LabWindows/CVI 2013 and later