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,7ef40c364905158c X-Google-Attributes: gid103376,public From: Mark Rutten Subject: Neater entry point code Date: 1997/12/18 Message-ID: <34989E2A.93EF7271@dsto.defence.gov.au>#1/1 X-Deja-AN: 299232379 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Organization: Defence Science & Technology Organisation Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1997-12-18T00:00:00+00:00 List-Id: The code that I have at the moment looks like while Execute'Count /= 0 loop accept Execute( In_Msg: in Message_Typ ) do Msg := In_Msg; end Execute; Add_Msg(Msg); end loop; Execute_Stuff; What I'm trying to do is extract anything that's queued up on the entry point and then go off and do something else. Is there a neater way of doing this? I don't want to use another task to do either Add_Msg or Execute_Stuff. Thanks, Mark