1 | # -*- coding: utf-8 -*-
|
---|
2 | #
|
---|
3 | # TECS Generator
|
---|
4 | # Generator for TOPPERS Embedded Component System
|
---|
5 | #
|
---|
6 | # Copyright (C) 2008-2014 by TOPPERS Project
|
---|
7 | #--
|
---|
8 | # ä¸è¨èä½æ¨©è
|
---|
9 | ã¯ï¼ä»¥ä¸ã®(1)ï½(4)ã®æ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§
|
---|
10 | # ã¢ï¼æ¬ã½ããã¦ã§ã¢ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹
|
---|
11 | # å¤ã»åé
|
---|
12 | å¸ï¼ä»¥ä¸ï¼å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
13 | # (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®èä½
|
---|
14 | # 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼
|
---|
15 | # ã¹ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
16 | # (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
17 | # ç¨ã§ããå½¢ã§åé
|
---|
18 | å¸ããå ´åã«ã¯ï¼åé
|
---|
19 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨
|
---|
20 | # è
|
---|
21 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®èä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨
|
---|
22 | # ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
23 | # (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
24 | # ç¨ã§ããªãå½¢ã§åé
|
---|
25 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®ããããã®æ¡ä»¶ãæºããã
|
---|
26 | # ã¨ï¼
|
---|
27 | # (a) åé
|
---|
28 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
29 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è
|
---|
30 | # ä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
31 | # (b) åé
|
---|
32 | å¸ã®å½¢æ
|
---|
33 | ãï¼å¥ã«å®ããæ¹æ³ã«ãã£ã¦ï¼TOPPERSããã¸ã§ã¯ãã«
|
---|
34 | # å ±åãããã¨ï¼
|
---|
35 | # (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ
|
---|
36 | # 害ãããï¼ä¸è¨èä½æ¨©è
|
---|
37 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
38 | 責ãããã¨ï¼
|
---|
39 | # ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®ã¦ã¼ã¶ã¾ãã¯ã¨ã³ãã¦ã¼ã¶ããã®ãããªãç
|
---|
40 | # ç±ã«åºã¥ãè«æ±ãããï¼ä¸è¨èä½æ¨©è
|
---|
41 | ããã³TOPPERSããã¸ã§ã¯ãã
|
---|
42 | # å
|
---|
43 | 責ãããã¨ï¼
|
---|
44 | #
|
---|
45 | # æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨èä½æ¨©è
|
---|
46 | ã
|
---|
47 | # ãã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ç¹å®ã®ä½¿ç¨ç®ç
|
---|
48 | # ã«å¯¾ããé©åæ§ãå«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§
|
---|
49 | # ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ害ã«é¢ãã¦ãï¼ã
|
---|
50 | # ã®è²¬ä»»ãè² ããªãï¼
|
---|
51 | #
|
---|
52 | # $Id: SharedOpaqueRPCPlugin.rb 1011 2016-07-11 02:20:01Z coas-nagasima $
|
---|
53 | #++
|
---|
54 |
|
---|
55 | require_tecsgen_lib "lib/GenOpaqueMarshaler.rb"
|
---|
56 | require_tecsgen_lib "lib/GenParamCopy.rb"
|
---|
57 |
|
---|
58 | #= SharedOpaqueRPC ãã©ã°ã¤ã³
|
---|
59 | # SharedOpaqueRPC ãã£ã³ãã«ãçæãã
|
---|
60 | # ãã©ã°ã¤ã³å¼æ°ã¯ GenTransparentMarshaler åç
|
---|
61 | §
|
---|
62 |
|
---|
63 | # mikan through plugin: namespace ãèæ
|
---|
64 | ®ããã¦ããªã
|
---|
65 | # ãããå©ç¨ããå ´åã以ä¸ã®ããã« toppers_jsp.cdl sChannel.cdl ãæå®ããå¿
|
---|
66 | è¦ããã
|
---|
67 | # tecsgen toppers_jsp.cdl sChannel.cdl your_description.cdl
|
---|
68 |
|
---|
69 | # 以ä¸ãä»®å®ï¼å¶éäºé
|
---|
70 | ï¼
|
---|
71 | # å¼ã³å
|
---|
72 | ãå¼ã³å
|
---|
73 | ã®ã¨ã³ãã£ã¢ã³ãchar, short, int_t, long_t, intptr_t ã®ãµã¤ãºãåã
|
---|
74 | # æ符å·ãç¡ç¬¦å·ã§ãµã¤ãºãåã
|
---|
75 |
|
---|
76 | class SharedOpaqueRPCPlugin < ThroughPlugin
|
---|
77 |
|
---|
78 | # ãã£ã³ãã«ãå
|
---|
79 | ±æãããã©ã°ã¤ã³ãªãã¸ã§ã¯ãã¸ã®ããã·ã¥ãªã¹ã
|
---|
80 | @@shared_channel_list = {} # { chan_name => [ Plugin_obj0, Plugin_Obj1, ... ] }
|
---|
81 |
|
---|
82 | attr_reader :cell_name, :start_region, :end_region
|
---|
83 | include GenOpaqueMarshaler
|
---|
84 | include GenParamCopy
|
---|
85 |
|
---|
86 | # SharedOpaqueRPCPlugin å°ç¨ã®ãªãã·ã§ã³
|
---|
87 | SharedOpaqueRPCPluginArgProc = RPCPluginArgProc.dup # è¤è£½ãä½ã£ã¦å
|
---|
88 | ãå¤æ´ããªãããã«ãã
|
---|
89 | SharedOpaqueRPCPluginArgProc[ "sharedChannelName" ] = Proc.new { |obj,rhs| obj.set_sharedChannelName rhs }
|
---|
90 |
|
---|
91 | #=== RPCPlugin ã® initialize
|
---|
92 | # 説æ㯠ThroughPlugin (plugin.rb) ãåç
|
---|
93 | §
|
---|
94 | def initialize( cell_name, plugin_arg, next_cell, next_cell_port_name, signature, celltype, caller_cell )
|
---|
95 | super
|
---|
96 | initialize_opaque_marshaler
|
---|
97 | @entry_port_name = :"eClientEntry" # Marshaler ã®åãå£å (through ã»ã«ã®å
|
---|
98 | ¥ãå£)
|
---|
99 |
|
---|
100 | # ãªãã·ã§ã³ï¼GenOpaqueMarshaler åç
|
---|
101 | §
|
---|
102 | @plugin_arg_check_proc_tab = SharedOpaqueRPCPluginArgProc
|
---|
103 | @sharedChannelName = nil
|
---|
104 | parse_plugin_arg
|
---|
105 | check_opener_code
|
---|
106 | check_PPAllocator
|
---|
107 |
|
---|
108 | @shared_channel_ct_name = :"tSharedOpaqueRPCPluginChannel_tTDR"
|
---|
109 | @shared_channel_server_ct_name = :"#{@shared_channel_ct_name}_Server"
|
---|
110 | @shared_channel_client_ct_name = :"#{@shared_channel_ct_name}_Client"
|
---|
111 | @shared_channel_ct_file_name = "#{$gen}/#{@shared_channel_ct_name}.cdl"
|
---|
112 | if @sharedChannelName == nil then
|
---|
113 | cdl_error( "'sharedChannelName' option: mandatory")
|
---|
114 | else
|
---|
115 | @shared_channel_cell = @sharedChannelName
|
---|
116 | end
|
---|
117 |
|
---|
118 | if @@shared_channel_list[ @shared_channel_cell ] == nil then
|
---|
119 | @@shared_channel_list[ @shared_channel_cell ] = [ self ]
|
---|
120 | else
|
---|
121 | @@shared_channel_list[ @shared_channel_cell ] << self
|
---|
122 | end
|
---|
123 | @sub_channel_no = ( @@shared_channel_list[ @shared_channel_cell ].length ) -1
|
---|
124 |
|
---|
125 | prev_start = @@shared_channel_list[ @shared_channel_cell ][0].start_region
|
---|
126 | if @start_region != prev_start then
|
---|
127 | # ååºã¨ start ãªã¼ã¸ã§ã³ä¸ä¸è´ (ååºã¯ãèªåèªèº«ã¨ãã§ãã¯ããããç¡é§ã ãå°ããã®ã§æ¾ç½®)
|
---|
128 | cdl_error( "SharedRPCPlugin: start region mismatch current: #{@region.get_name} previous: #{prev_start.get_name}")
|
---|
129 | end
|
---|
130 |
|
---|
131 | prev_end = @@shared_channel_list[ @shared_channel_cell ][0].end_region
|
---|
132 | if @end_region != prev_end then
|
---|
133 | # ååºã¨ end ãªã¼ã¸ã§ã³ä¸ä¸è´ (ååºã¯ãèªåèªèº«ã¨ãã§ãã¯ããããç¡é§ã ãå°ããã®ã§æ¾ç½®)
|
---|
134 | cdl_error( "SharedRPCPlugin: end region mismatch current: #{@region.get_name} previous: #{prev_end.get_name}")
|
---|
135 | end
|
---|
136 |
|
---|
137 | end
|
---|
138 |
|
---|
139 | # def set_through_info( start_region, end_region, through_type )
|
---|
140 | # super
|
---|
141 | # end
|
---|
142 |
|
---|
143 | #=== ãã©ã°ã¤ã³å¼æ° sharedChannelCell ã®ãã§ãã¯
|
---|
144 | def set_sharedChannelName( rhs )
|
---|
145 | @sharedChannelName = rhs
|
---|
146 | # path = [ "::", rhs ]
|
---|
147 | # obj = Namespace.find( path )
|
---|
148 | # if ! obj.instance_of?( Cell ) then
|
---|
149 | # cdl_error( "SharedOpaqueRPCPlugin: sharedChannelName '#{rhs}' not cell" )
|
---|
150 | # end
|
---|
151 | end
|
---|
152 |
|
---|
153 | def gen_plugin_decl_code( file )
|
---|
154 |
|
---|
155 | # ãã®ã»ã«ã¿ã¤ãï¼åãã·ã°ããã£ï¼ã¯æ¢ã«çæããã¦ãããï¼
|
---|
156 | if @@generated_celltype[ @shared_channel_server_ct_name ] == nil then
|
---|
157 | @@generated_celltype[ @shared_channel_server_ct_name ] = [ self ]
|
---|
158 | else
|
---|
159 | @@generated_celltype[ @shared_channel_server_ct_name ] << self
|
---|
160 | end
|
---|
161 |
|
---|
162 | gen_marshaler_celltype
|
---|
163 |
|
---|
164 | # åãå
|
---|
165 | 容ãäºåº¦æ¸ãå¯è½æ§ãã (AppFile ã¯ä¸å¯)
|
---|
166 |
|
---|
167 | if @PPAllocatorSize then
|
---|
168 | alloc_call_port = " call sPPAllocator cPPAllocator;\n"
|
---|
169 | alloc_call_port_join = " cPPAllocator => composite.cPPAllocator;\n"
|
---|
170 | else
|
---|
171 | alloc_call_port = ""
|
---|
172 | alloc_call_port_join = ""
|
---|
173 | end
|
---|
174 |
|
---|
175 | f = CFile.open( @shared_channel_ct_file_name, "w" )
|
---|
176 | # åãå
|
---|
177 | 容ãäºåº¦æ¸ãå¯è½æ§ãã (AppFile ã¯ä¸å¯)
|
---|
178 |
|
---|
179 | f.print <<EOT
|
---|
180 |
|
---|
181 | /* Shared Channel Celltype for Client */
|
---|
182 | composite #{@shared_channel_client_ct_name} {
|
---|
183 | entry sTDR eTDR;
|
---|
184 | entry sSemaphore eSemaphore[];
|
---|
185 | call sChannel cClientChannel;
|
---|
186 |
|
---|
187 | cell tTDR TDR {
|
---|
188 | cChannel => composite.cClientChannel;
|
---|
189 | };
|
---|
190 | cell tSemaphore Semaphore {
|
---|
191 | count = 1;
|
---|
192 | attribute = C_EXP("TA_NULL");
|
---|
193 | };
|
---|
194 | cell tRPCSharedChannelMan SharedChannelMan{
|
---|
195 | cSemaphore = Semaphore.eSemaphore;
|
---|
196 | cClientSideTDR = TDR.eTDR;
|
---|
197 | };
|
---|
198 | composite.eSemaphore => SharedChannelMan.eSemaphore;
|
---|
199 | composite.eTDR => TDR.eTDR;
|
---|
200 | };
|
---|
201 |
|
---|
202 | /* Shared Channel Celltype for Server */
|
---|
203 | [active]
|
---|
204 | composite #{@shared_channel_server_ct_name} {
|
---|
205 | entry sTDR eTDR;
|
---|
206 | call sChannel cServerChannel;
|
---|
207 | call sUnmarshalerMain cUnmarshalAndCallFunction[];
|
---|
208 | call sServerChannelOpener cOpener;
|
---|
209 | attr {
|
---|
210 | PRI priority;
|
---|
211 | };
|
---|
212 |
|
---|
213 | cell tTDR TDR {
|
---|
214 | cChannel => composite.cServerChannel;
|
---|
215 | };
|
---|
216 | cell tRPCSharedTaskMainWithOpener RPCSharedTaskMain {
|
---|
217 | cUnmarshalAndCallFunction => composite.cUnmarshalAndCallFunction;
|
---|
218 | cServerSideTDR = TDR.eTDR;
|
---|
219 | cOpener => composite.cOpener;
|
---|
220 | };
|
---|
221 | cell tTask Task {
|
---|
222 | cBody = RPCSharedTaskMain.eMain;
|
---|
223 | taskAttribute = C_EXP("TA_ACT");
|
---|
224 | stackSize = 4096;
|
---|
225 | priority = composite.priority;
|
---|
226 | };
|
---|
227 | composite.eTDR => TDR.eTDR;
|
---|
228 | };
|
---|
229 |
|
---|
230 | EOT
|
---|
231 | f.close
|
---|
232 |
|
---|
233 | end
|
---|
234 |
|
---|
235 | #=== through cell ã³ã¼ããçæ
|
---|
236 | #
|
---|
237 | #
|
---|
238 | def gen_through_cell_code( file )
|
---|
239 |
|
---|
240 | gen_plugin_decl_code( file )
|
---|
241 |
|
---|
242 | file.print <<EOT
|
---|
243 |
|
---|
244 | import( "#{@marshaler_celltype_file_name}" );
|
---|
245 | import( "#{@shared_channel_ct_file_name}" );
|
---|
246 | EOT
|
---|
247 |
|
---|
248 | # nest = @caller_cell.get_region.gen_region_str_pre file
|
---|
249 | nest = @start_region.gen_region_str_pre file
|
---|
250 | indent_str = " " * nest
|
---|
251 |
|
---|
252 | # ã»ã«ãæ¢ã
|
---|
253 | # path =["::",@next_cell.get_name]
|
---|
254 | # cell = Namespace.find( path )
|
---|
255 | cell = Namespace.find( @next_cell.get_namespace_path )
|
---|
256 |
|
---|
257 | # å
|
---|
258 | ±æãããéä¿¡ãã£ã³ãã«ã®çæã®ãããã¿ã¤ã宣è¨
|
---|
259 | file.print <<EOT
|
---|
260 | #{indent_str}cell #{@shared_channel_client_ct_name} #{@shared_channel_cell};
|
---|
261 | EOT
|
---|
262 |
|
---|
263 | # ãã¼ã·ã£ã©ã»ã«ã®çæï¼ã¢ãã±ã¼ã¿ã³ã¼ãã®çæããï¼
|
---|
264 | # ã¢ãã±ã¼ã¿ã®æå®ããããï¼
|
---|
265 | if cell.get_allocator_list.length > 0 then
|
---|
266 |
|
---|
267 | file.print "#{indent_str}[allocator("
|
---|
268 |
|
---|
269 | delim = ""
|
---|
270 | cell.get_allocator_list.each do |type, eport, subsc, func, buf, alloc|
|
---|
271 |
|
---|
272 | alloc_str = alloc.to_s
|
---|
273 | subst = @substituteAllocator[alloc_str.to_sym]
|
---|
274 |
|
---|
275 | if subst then
|
---|
276 | alloc_str = subst[2]+"."+subst[3]
|
---|
277 | end
|
---|
278 |
|
---|
279 | file.print delim
|
---|
280 | delim = ",\n#{indent_str} " # æçµè¡ã«ã¯åºããªã
|
---|
281 |
|
---|
282 | if subsc then # é
|
---|
283 | åæ·»æ°
|
---|
284 | subsc_str = '[#{subsc}]'
|
---|
285 | else
|
---|
286 | subsc_str = ""
|
---|
287 | end
|
---|
288 |
|
---|
289 | eport = @entry_port_name #RPCã®åãå£åã«å¤æ´
|
---|
290 | file.print "#{eport}#{subsc_str}.#{func}.#{buf} = #{alloc_str}"
|
---|
291 | end
|
---|
292 |
|
---|
293 | file.puts ")]"
|
---|
294 | end
|
---|
295 |
|
---|
296 | # ãã¼ã·ã£ã©ã»ã«æ¬ä½çæ
|
---|
297 | file.print <<EOT
|
---|
298 | /* OpaqueRPC Marshaler Cell */
|
---|
299 | #{indent_str}cell #{@marshaler_celltype_name} #{@cell_name} {
|
---|
300 | #{indent_str} cTDR = #{@shared_channel_cell}.eTDR;
|
---|
301 | #{indent_str} cLockChannel = #{@shared_channel_cell}.eSemaphore[#{@sub_channel_no}];
|
---|
302 | #{indent_str}};
|
---|
303 | EOT
|
---|
304 | # @caller_cell.get_region.gen_region_str_post file
|
---|
305 | @start_region.gen_region_str_post file
|
---|
306 |
|
---|
307 | # ã¢ã³ãã¼ã·ã£ã©ã»ã«ã®åºå
|
---|
308 | # ã»ã«æ¬ä½ã®çæ
|
---|
309 | nest = @end_region.gen_region_str_pre file
|
---|
310 |
|
---|
311 | file.print <<EOT
|
---|
312 | /* Server Channel Cell prototype */
|
---|
313 | #{indent_str}cell #{@shared_channel_server_ct_name} #{@sharedChannelName}_Server;
|
---|
314 |
|
---|
315 | EOT
|
---|
316 |
|
---|
317 | # PPAllocator ãå¿
|
---|
318 | è¦ã?
|
---|
319 | if @PPAllocatorSize then
|
---|
320 | if @sub_channel_no == 0 then
|
---|
321 | file.print <<EOT
|
---|
322 | #{indent_str}cell tPPAllocator PPAllocator_#{@shared_channel_cell}{
|
---|
323 | #{indent_str} heapSize = #{@PPAllocatorSize};
|
---|
324 | #{indent_str}};
|
---|
325 | EOT
|
---|
326 | end
|
---|
327 |
|
---|
328 | ppallocator_join = "#{indent_str} cPPAllocator = PPAllocator_#{@shared_channel_cell}.ePPAllocator;\n"
|
---|
329 | else
|
---|
330 | ppallocator_join = ""
|
---|
331 | end
|
---|
332 |
|
---|
333 | file.print <<EOT
|
---|
334 | #{indent_str}cell #{@unmarshaler_celltype_name} #{@cell_name}_Server {
|
---|
335 | #{indent_str} cTDR = #{@shared_channel_cell}_Server.eTDR;
|
---|
336 | #{indent_str} cServerCall = #{@next_cell.get_namespace_path.get_path_str}.#{@next_cell_port_name};
|
---|
337 | #{ppallocator_join}#{indent_str}};
|
---|
338 | EOT
|
---|
339 | @end_region.gen_region_str_post file
|
---|
340 |
|
---|
341 | end
|
---|
342 |
|
---|
343 | #=== post ã³ã¼ã(CDL) ãçæ
|
---|
344 | # ãã©ã°ã¤ã³ã®å¾ã®ã³ã¼ããçæ
|
---|
345 | #file:: File:
|
---|
346 | def self.gen_post_code( file )
|
---|
347 |
|
---|
348 | file.print "/* '#{self.name}' post code */\n"
|
---|
349 |
|
---|
350 | @@shared_channel_list.each{ |chan_name,plugin_obj_array|
|
---|
351 | file.print "/* '#{chan_name}' shared channel */\n"
|
---|
352 | plugin_obj_array[0].gen_post_code( file, plugin_obj_array )
|
---|
353 | }
|
---|
354 |
|
---|
355 | end
|
---|
356 |
|
---|
357 | #=== post ã³ã¼ã(CDL) ãçæ
|
---|
358 | # å
|
---|
359 | ±æãã£ã³ãã«ãçæãã
|
---|
360 | # ãã®ã¡ã½ããã¯ããã£ã³ãã«ãå
|
---|
361 | ±æããæåã®ãã©ã°ã¤ã³ãªãã¸ã§ã¯ãã®ã¿å¼ã³åºããã
|
---|
362 | def gen_post_code( file, plugin_obj_array )
|
---|
363 |
|
---|
364 | # å
|
---|
365 | ±æããã¦ããéä¿¡ãã£ã³ãã«ã®çæ
|
---|
366 | # åãã©ã°ã¤ã³ã¤ã³ã¹ã¿ã³ã¹ã§ã¯ @shared_channel_ct_name ã¨ãã¦è¨æ¶ãã¦ãã
|
---|
367 | # region = @caller_cell.get_region
|
---|
368 | nest = @start_region.gen_region_str_pre file
|
---|
369 | indent_str = " " * nest
|
---|
370 | file.print <<EOT
|
---|
371 | #{indent_str}cell #{@shared_channel_client_ct_name} #{@sharedChannelName} {
|
---|
372 | #{indent_str} cClientChannel = #{@clientChannelCell}.eC0;
|
---|
373 | #{indent_str}};
|
---|
374 | EOT
|
---|
375 | @start_region.gen_region_str_post file
|
---|
376 |
|
---|
377 | nest = @end_region.gen_region_str_pre file
|
---|
378 | indent_str = " " * nest
|
---|
379 | file.print "#{indent_str}cell #{@shared_channel_server_ct_name} #{@sharedChannelName}_Server {\n"
|
---|
380 | file.print <<EOT
|
---|
381 | #{indent_str} cServerChannel = #{@serverChannelCell}.eC1;
|
---|
382 | #{indent_str} cOpener = #{@serverChannelCell}.eOpener;
|
---|
383 | EOT
|
---|
384 | plugin_obj_array.each{ |po|
|
---|
385 | file.print <<EOT
|
---|
386 | #{indent_str} cUnmarshalAndCallFunction[] = #{po.cell_name}_Server.eService;
|
---|
387 | EOT
|
---|
388 | }
|
---|
389 | file.printf <<EOT
|
---|
390 | #{indent_str} priority = #{@taskPriority};
|
---|
391 | #{indent_str}};
|
---|
392 | EOT
|
---|
393 | @end_region.gen_region_str_post file
|
---|
394 |
|
---|
395 | end
|
---|
396 | end
|
---|
397 |
|
---|
398 |
|
---|