source:
CIVL/mods/dev.civl.com/examples/omp/parallelBad.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 140 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.cvh> |
| 2 | |
| 3 | int main() { |
| 4 | int counter = 0; |
| 5 | |
| 6 | #pragma omp parallel |
| 7 | if (counter == 0) |
| 8 | counter++; |
| 9 | $assert(counter == 1); |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
