source: CIVL/examples/library/civlc/commBad.cvl@ 64f7cb1

1.23 2.0 main test-branch
Last change on this file since 64f7cb1 was d66b03b, checked in by Ziqing Luo <ziqing@…>, 10 years ago

got rid of $root

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

  • Property mode set to 100644
File size: 452 bytes
Line 
1/* Deadlocking use of communicator. Commandline execution:
2 * civl verify commBad.cvl
3 * */
4#include <civlc.cvh>
5#include <comm.cvh>
6#define TAG 0
7$scope root = $here;
8$gcomm gcomm = $gcomm_create(root, 2);
9_Bool start = $false;
10
11void worker(int me) {
12 $comm comm = $comm_create($here, gcomm, me);
13 $when (start);
14 $comm_dequeue(comm, me, TAG);
15}
16
17void main() {
18 $proc worker_proc = $spawn worker(0);
19
20 start = $true;
21 $wait(worker_proc);
22}
Note: See TracBrowser for help on using the repository browser.