#pragma ibm critical

C only


The critical pragma identifies a critical section of program code that must only be run by one process at a time.


Read syntax diagramSkip visual syntax diagram>>-#--pragma--ibm critical--+--------+-------------------------><

where name can be used to optionally identify the critical region. Identifiers naming a critical region have external linkage.


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: