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: a07f3367d7,8536537bd0d9744f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Wed, 18 Nov 2009 12:02:34 +0100 From: Georg Bauhaus User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Tail recursion upon task destruction References: <1c0f7smxa240s.86mhal9qudx.dlg@40tude.net> In-Reply-To: <1c0f7smxa240s.86mhal9qudx.dlg@40tude.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-ID: <4b03d44a$0$6551$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 18 Nov 2009 12:02:34 CET NNTP-Posting-Host: 3059d766.newsspool4.arcor-online.net X-Trace: DXC=gZI_5L1S@>RcHPTNZh_e7Q4IUKZLh>_cHTX3j]iH[bc^NE Dmitry A. Kazakov schrieb: > Now consider a case when the last screw is removed from the device. This is > an operation eventually serviced by the device driver. I.e. within the > device driver, you see, it was the last screw of the device and *if* there > is no other references to the device, it must fall apart. This is a case > where you wanted the device to commit suicide. There is nobody else out > there to do this. The device is dangling. This is not the only use case, > just one possible case. Could you make a Hammer task that will perform its duties whenever a Device is reported/reports to have lost all its screws? (Yes, a garbage collector, I think, though explicitly co-operating with devices.)