next up previous contents
Next: Semantics of the TASK_REGION Up: The TASK_REGION Construct Previous: The TASK_REGION Construct

Syntax of the TASK_REGION Construct

A task region is a single entry region delimited by two structured comments:

H917 task-region-construct is
directive-origin block-task-region-directive
directive-origin end-task-region-directive
H918 block-task-region-directive is TASK_REGION
H919 end-task-region-directive is END TASK_REGION

A task-region-construct is a kind of executable-construct.

There must not be a transfer of control from outside the task-region-construct to inside the task-region-construct. Transfer of control out of the task-region-construct is allowed provided that the transfer does not originate inside an ON block. (The reason for this will be apparent later.)