From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9828c94314b4e79a X-Google-Attributes: gid103376,public From: mheaney@ni.net (Matthew Heaney) Subject: Re: Task question... Date: 1997/11/01 Message-ID: #1/1 X-Deja-AN: 286474636 References: <344580FA.478A@eelab.su.oz.au> <344a5b0e.102700339@news.pcisys.net> Organization: Estormza Software Newsgroups: comp.lang.ada Date: 1997-11-01T00:00:00+00:00 List-Id: In article <344a5b0e.102700339@news.pcisys.net>, elaine.waybright@pcisys.net wrote: >On Thu, 16 Oct 1997 12:50:34 +1000, Paul Van Gorp > wrote: > >>Hi, I have this strange problem when using tasking in Ada95 >> >>compiler: GNAT 3.10p1 >>OS: micro$oft w95. >> >>Im looking for a way to accomplish the following (im sure there exists a >>simple soln!) >> >>task type t1 is >> entry reply; >> ... >>end t1; >> >>task type t2 is >> ... >>end t2; >> >>task body t1 is >> T: t2; >>begin >>each taska and taskb would have its own instance of T, which they >>could rendezvous with easily enough with T.whatever, but how could that >>task T rendezvous with the task that called it ? Declare task T2 inside the declarative region of T1: task body T1 is task T2 is entry E2; end; task body T2 is begin ... end; begin T2.E2; ... end; -------------------------------------------------------------------- Matthew Heaney Software Development Consultant (818) 985-1271