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=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,73bdb823e1c1f689 X-Google-Attributes: gid103376,public From: Mats Weber Subject: Re: idiom for task termination? Date: 1997/02/07 Message-ID: <32FB6A6A.431E@elca-matrix.ch>#1/1 X-Deja-AN: 215311674 references: <32FA10EF.32A@bix.com> content-type: text/plain; charset=us-ascii organization: ELCA Matrix SA mime-version: 1.0 reply-to: Mats.Weber@elca-matrix.ch newsgroups: comp.lang.ada x-mailer: Mozilla 3.01 (Macintosh; I; PPC) Date: 1997-02-07T00:00:00+00:00 List-Id: Robert A Duff wrote: > > In article <32FA10EF.32A@bix.com>, Tom Moran wrote: > >What's a good idiom for terminating tasks inside library packages? > >If I build a re-usable package which contains an internal task which > >has an 'entry quit' but does not have a select-terminate alternative, > > Why not add a terminate alternative? That's what it's for... Because tasks whose masters are library units other than the main program are not required to terminate, and the terminate alternative needs not be chosen. Most implementations still terminate them (their master is the hidden task that calls the main program) but you can't count on this to happen in a portable manner. BTW has Ada 95 changed anything on this ?