Debian Codegraph @

yo/concrete/examples/monitor/main.cc

raw
1 #include "monitor.h"
2
3 //MAIN
4 int main()
5 try
6 {
7 Monitor{}.run();
8 }
9 catch (int exitValue)
10 {
11 return exitValue;
12 }
13 //=
14
15 /*
16 Example of a session:
17
18 # a.out
19 ? start
20 Child 1 started
21 ? 1 hello world
22 ? 3394: Child 1:1: hello world
23 ? 1 hi there!
24 ? 3394: Child 1:2: hi there!
25 ? start
26 Child 2 started
27 ? 3394: Child 1: standing by
28 ? 3395: Child 2: standing by
29 ? 3394: Child 1: standing by
30 ? 3395: Child 2: standing by
31 ? stop 1
32 ? 3395: Child 2: standing by
33 ? 2 hello world
34 ? 3395: Child 2:1: hello world
35 ? 1 hello world
36 No child number 1
37 ? exit3395: Child 2: standing by
38 ?
39 #
40 */