source:
CIVL/examples/languageFeatures/atomicWaitBad.cvl@
69193a9
| Last change on this file since 69193a9 was 5a81196, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 145 bytes | |
| Line | |
|---|---|
| 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.
