source: CIVL/examples/por/atomic0.cvl

main
Last change on this file was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

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

  • Property mode set to 100644
File size: 155 bytes
RevLine 
[e6b02c8]1#include<civlc.cvh>
2
[b15374a]3int x=0;
[e6b02c8]4
[b15374a]5void f() {
6 x=1;
7}
[e6b02c8]8
[b15374a]9void main() {
[48bfab9]10 $proc fp = $spawn f();
11
[b15374a]12 $atomic {
[3ff27cf]13 $assert((x==0)); // false
[b15374a]14 }
[48bfab9]15 $wait(fp);
[b15374a]16}
Note: See TracBrowser for help on using the repository browser.