main
test-branch
|
Last change
on this file since bb03188 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:
393 bytes
|
| Rev | Line | |
|---|
| [96e7e5e] | 1 | /**
|
|---|
| 2 | * This example demonstrates the checking of process leak, i.e.,
|
|---|
| 3 | * when the main function returns, there should be no other processes
|
|---|
| 4 | * running or being blocked.
|
|---|
| 5 | *
|
|---|
| 6 | * Command line execution: civl verify memoryLeak.cvl
|
|---|
| 7 | */
|
|---|
| [e6b02c8] | 8 | #include<civlc.cvh>
|
|---|
| 9 |
|
|---|
| [48bfab9] | 10 | $proc mainP=$proc_null;
|
|---|
| 11 |
|
|---|
| 12 | void process(){
|
|---|
| 13 | $when(mainP != $proc_null);
|
|---|
| 14 | $wait(mainP);
|
|---|
| 15 | }
|
|---|
| 16 |
|
|---|
| 17 | void main(){
|
|---|
| 18 | $spawn process();
|
|---|
| 19 | mainP = $self;
|
|---|
| 20 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.