| Name: shared | Properties: data-environment attribute, data-sharing attribute |
|
|
Arguments
| Name | Type | Properties |
| list | list of variable list item type | |
|
|
Directives
, , ,Semantics
The shared clause declares one or more list items to be shared by tasks generated by the construct on which it appears. All references to a list item within a task refer to the storage area of the original variable at the point the directive was encountered.The programmer must ensure, by adding proper synchronization, that storage shared by an explicit task region does not reach the end of its lifetime before the explicit task region completes its execution.
Cross References