Changeset 34 for SimpleSample/trunk/SimpleSampleOpaqueRPC/SimpleSample.cdl
- Timestamp:
- Jun 24, 2012, 7:42:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SimpleSample/trunk/SimpleSampleOpaqueRPC/SimpleSample.cdl
r30 r34 11 11 * | |Body | | | | | | 12 12 * +-------------+ +-------------+ +-------------+ +-------------+ 13 * 14 * * SimpleSample/SimpleSample.cdl を参照 15 * * rSimple, rSample リージョンに分割し、それぞれを linkunit (リンク単位) とした 16 * * リージョン間には、OpaqueRPCPlugin で OpaqueRPC Channel を挿入する 17 * * TaskMain はチャンネルオープン後、 tSimple を呼び出す 13 18 */ 14 19 … … 22 27 import( <tSocketChannel.cdl> ); 23 28 29 // シグニチャ sSample 24 30 signature sSample { 25 31 ER sayHello( [in]int32_t times ); … … 27 33 }; 28 34 35 // セルタイプ tSample 29 36 celltype tSample { 30 37 entry sSample eEnt; 31 38 }; 32 39 33 [singleton,active] 40 // セルタイプ tSimple 34 41 celltype tSimple { 35 42 call sSample cCall; … … 37 44 }; 38 45 46 // セルタイプ tTaskMain (クライアント側チャンネルをオープンするために用いる) 39 47 celltype tTaskMain { 40 48 entry sTaskBody eBody; … … 45 53 [linkunit] 46 54 region rSample { 55 // セル SysLog 47 56 cell tSysLog SysLog { 48 57 }; 58 // セル Kernel 49 59 cell tKernel Kernel { 50 60 }; 61 // セル Sample 51 62 cell tSample Sample { 52 63 }; … … 57 68 "PPAllocatorSize=1024," 58 69 "clientChannelCell= 'ClientChannel', " // クライアント側チャンネルセル名 70 // このオプションでは、複数結合に対応できない 71 // 複数結合に対応するには、複数結合可能なオプション指定とするか、SharedOpaqueRPCPlugin を用いる 72 // 複数結合可能なオプション指定例は test/opaqueRPC 下にサンプルコードがある 59 73 )] 60 74 region rSimple { 75 // セル SysLog 61 76 cell tSysLog SysLog { 62 77 }; 78 // セル Simple 63 79 cell tSimple Simple { 64 80 cCall = rSample::Sample.eEnt; 65 81 }; 82 // セル TaskMain 66 83 cell tTaskMain TaskMain { 67 84 cBody = Simple.eBody; 68 85 cOpener = ClientChannel.eOpener; 69 86 }; 70 87 // セル Task 71 88 cell tTask Task { 72 cBody = TaskMain.eBody; 89 cBody = TaskMain.eBody; // TaskMain に変更 73 90 priority = 11; 74 91 stackSize = 1024;
Note:
See TracChangeset
for help on using the changeset viewer.