#pragma omp ordered Preprocessor Directive (C Only)

The omp ordered directive identifies a structured block of code that must be executed in sequential order.

Syntax

#pragma omp ordered
    statement_block

Notes
The omp ordered directive must be used as follows:



Program Parallelization
Shared and Private Variables in a Parallel Environment
Countable Loops


Control Parallel Processing with Pragmas


#pragma Preprocessor Directives for Parallel Processing
#pragma omp for Preprocessor Directive
OpenMP Run-time Options for Parallel Processing