From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

omp_in_parallel

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

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit