source: CIVL/examples/languageFeatures/commBad.cvl@ 4e048c3

1.23 2.0 main test-branch
Last change on this file since 4e048c3 was 0b9a80a, checked in by Manchun Zheng <zmanchun@…>, 12 years ago

implemented $scopeof expression; removed unused examples; cleaned up library executors and enablers.

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

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