The critical pragma identifies a critical section of program code that must only be run by one process at a time.
Syntax
#pragma ibm critical [(name)] <statement>
where name can be used to optionally identify the critical region. Identifiers naming a critical region have external linkage.
Notes
The compiler reports an error if you try to branch into or out of a critical section. Some
situations that will cause an error are:
Program Parallelization
Shared and Private Variables in a Parallel Environment
Countable Loops
Control Parallel Processing with Pragmas
#pragma Preprocessor Directives for Parallel Processing
smp=reclocks Compiler Option