source:
CIVL/examples/omp/simple_omp_share.c@
9becdb9
| Last change on this file since 9becdb9 was c5c097d, checked in by , 10 years ago | |
|---|---|
|
|
| File size: 97 bytes | |
| Rev | Line | |
|---|---|---|
| [c5c097d] | 1 | int main() { |
| 2 | int x = 0; | |
| 3 | #pragma omp parallel shared(x) | |
| 4 | { | |
| 5 | #pragma omp atomic | |
| 6 | x=x+1; | |
| 7 | } | |
| 8 | } |
Note:
See TracBrowser
for help on using the repository browser.
