source: CIVL/examples/languageFeatures/atomWaitBad.cvl@ 90dd7d7

1.23 2.0 main test-branch
Last change on this file since 90dd7d7 was 9cd6168, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

Print intermediate transitions for atomic execution.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@381 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 220 bytes
Line 
1#include <civlc.h>
2void foo(){
3 void koo(){
4 int o = 0;
5 o++;
6 }
7
8 $proc p = $spawn koo();
9 // undesired wait blocked state in $atom block, an exception will be thrown
10 $wait p;
11}
12
13void main(){
14
15 $atom{
16 foo();
17 }
18}
Note: See TracBrowser for help on using the repository browser.