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,4fe0da28a190b761 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!feeder.erje.net!feeder2.news.saunalahti.fi!feeder1.news.saunalahti.fi!nntp.inet.fi!inet.fi!fi.sn.net!newsfeed2.fi.sn.net!news.song.fi!not-for-mail Date: Fri, 07 Nov 2008 11:54:05 +0200 From: Niklas Holsti User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060628 Debian/1.7.8-1sarge7.1 X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Storage management References: <87fxmbog1u.fsf@mid.deneb.enyo.de> <87abciurrl.fsf@mid.deneb.enyo.de> <13hpf6ht4tl2m$.1su6rgr67eb2o$.dlg@40tude.net> In-Reply-To: <13hpf6ht4tl2m$.1su6rgr67eb2o$.dlg@40tude.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <49140215$0$23600$4f793bc4@news.tdc.fi> Organization: TDC Internet Services NNTP-Posting-Host: laku61.adsl.netsonic.fi X-Trace: 1226048021 news.tdc.fi 23600 81.17.205.61:32809 X-Complaints-To: abuse@tdcnet.fi Xref: g2news2.google.com comp.lang.ada:8335 Date: 2008-11-07T11:54:05+02:00 List-Id: Dmitry A. Kazakov wrote: > I have a general question. Does anybody use abort > and asynchronous transfer of control? I do, to set a limit on the running time of a possibly lengthy procedure Analyse: select delay Opt.Max_Analysis_Time; Output.Error ("Maximum analysis time exceeded."); then abort Analyse; end select; > After all, there is no chance to have them reasonably working anyway. It seems to work for me (GNAT 3.15p), except that I had to add a dummy "delay 0.1" at the end of the main subprogram. Otherwise the program would sometimes hang indefinitely in the termination phase. This program has no tasks, so the abort and ATC are the only form of concurrency. > How about to remove that stuff altogether and make a far more important > finalization right and fast? Isn't pragma Restrictions (No_Select_Statements) enough? Or is it too strong, and a new restriction specifically for ATC would be better? -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .