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-Thread: 103376,be3d89c2ad66a506,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!g44g2000cwa.googlegroups.com!not-for-mail From: "REH" Newsgroups: comp.lang.ada Subject: Advice on abort Date: 4 Nov 2005 07:25:34 -0800 Organization: http://groups.google.com Message-ID: <1131117934.372137.244900@g44g2000cwa.googlegroups.com> NNTP-Posting-Host: 192.91.173.42 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1131117939 27257 127.0.0.1 (4 Nov 2005 15:25:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 4 Nov 2005 15:25:39 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g44g2000cwa.googlegroups.com; posting-host=192.91.173.42; posting-account=lnUIyw0AAACoRB2fMF2SFTIilm8F10q2 Xref: g2news1.google.com comp.lang.ada:6192 Date: 2005-11-04T07:25:34-08:00 List-Id: What are the best options when a task needs to be terminated, but signaling the task may not be possible? We have tasks that sometimes need to be terminated, but may potentially be blocked on a resource, such as a socket. Currently we use OS-specific calls to terminate the task, but I've never liked that. I've been thinking of using the abort statement, but I don't think that's very graceful either. I also would rather not complicate the code (or force polling behavior) by making the sockets non-blocking. Any advice?