source:
CIVL/examples/languageFeatures/atomicWaitBad.cvl@
52dff6c
| Last change on this file since 52dff6c was 5a81196, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 145 bytes | |
| Rev | Line | |
|---|---|---|
| [5a81196] | 1 | #include <civlc.h> |
| 2 | void foo(){ | |
| 3 | void koo(){ | |
| 4 | int o = 0; | |
| 5 | o++; | |
| 6 | } | |
| 7 | ||
| 8 | $proc p = $spawn koo(); | |
| 9 | $wait p; | |
| 10 | } | |
| 11 | ||
| 12 | void main(){ | |
| 13 | ||
| 14 | $atomic{ | |
| 15 | foo(); | |
| 16 | } | |
| 17 | } |
Note:
See TracBrowser
for help on using the repository browser.
