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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,78546269947cb927,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2004-03-29 11:41:34 PST Path: archiver1.google.com!news1.google.com!news.glorb.com!news.tele.dk!news.tele.dk!small.news.tele.dk!news-FFM2.ecrc.net!news.iks-jena.de!not-for-mail From: Lutz Donnerhacke Newsgroups: comp.lang.ada Subject: Combining entry_call, accept_statment and terminate_statment Date: Mon, 29 Mar 2004 19:41:34 +0000 (UTC) Organization: IKS GmbH Jena Message-ID: NNTP-Posting-Host: belenus.iks-jena.de X-Trace: branwen.iks-jena.de 1080589294 6577 217.17.192.34 (29 Mar 2004 19:41:34 GMT) X-Complaints-To: usenet@iks-jena.de NNTP-Posting-Date: Mon, 29 Mar 2004 19:41:34 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:6656 Date: 2004-03-29T19:41:34+00:00 List-Id: Sorry, but I do not get it: I have a protected type with an entry: protected type PT is entry X; end PT; p : PT; Now I have to construct a task dealing with new data from the protected type, an call from other tasks or the termination of the parent task. task type TT is entry Config; end TT; task body TT is begin loop select p.X; -- dealing with new data or accept Config; -- modify the task or terminate; end select; end loop; end TT; Unfortunly this is not allowed. Either accept and terminate or an entry_call and a delay can be combinded. I wonder how to solve such as deadlock. It should be a common idiom, but I had no luck in choosing searching keywords. Any hint?