Line | |
---|
1 | /*
|
---|
2 | * Simple な Sample (TransparentRPC 版)
|
---|
3 | *
|
---|
4 | * +-------------+ +-------------+ +-------------+
|
---|
5 | * | | | | | |
|
---|
6 | * | tTask | sTaskBody | tSimple | sSample | tSample |
|
---|
7 | * | Task |-----------|> Simple |==========|> Sample |
|
---|
8 | * | |cTask eBody| |cCall eEnt| |
|
---|
9 | * | |Body | | | |
|
---|
10 | * +-------------+ +-------------+ +-------------+
|
---|
11 | */
|
---|
12 |
|
---|
13 |
|
---|
14 | // cygwin 用の簡易な型定義
|
---|
15 | import( <cygwin_kernel.cdl> );
|
---|
16 | // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
|
---|
17 |
|
---|
18 | import( <tSysLog.cdl> );
|
---|
19 | import( <rpc.cdl> );
|
---|
20 | import( <tDataqueueOWChannel.cdl> );
|
---|
21 |
|
---|
22 | signature sSample {
|
---|
23 | ER sayHello( [in]int32_t times );
|
---|
24 | ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
|
---|
25 | };
|
---|
26 |
|
---|
27 | celltype tSample {
|
---|
28 | entry sSample eEnt;
|
---|
29 | };
|
---|
30 |
|
---|
31 | [singleton,active]
|
---|
32 | celltype tSimple {
|
---|
33 | call sSample cCall;
|
---|
34 | entry sTaskBody eBody;
|
---|
35 | };
|
---|
36 |
|
---|
37 | cell tSysLog SysLog {
|
---|
38 | };
|
---|
39 |
|
---|
40 | cell tSample Sample {
|
---|
41 | };
|
---|
42 |
|
---|
43 | cell tSimple Simple {
|
---|
44 | [through(RPCPlugin,"")]
|
---|
45 | cCall = Sample.eEnt;
|
---|
46 | };
|
---|
47 |
|
---|
48 | cell tTask Task {
|
---|
49 | cBody = Simple.eBody;
|
---|
50 | priority = 11;
|
---|
51 | stackSize = 1024;
|
---|
52 | taskAttribute = C_EXP( "TA_ACT" );
|
---|
53 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.