🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #11231

Re: Task KILL for Amiga

#11231
From: Markus Schmidt
Date: Sat, 28 Jan 1989 17:47
28 lines
2093 bytes
In article <3719@tekig5.PEN.TEK.COM> brianr@tekig5.PEN.TEK.COM (Brian Rhodefer) writes:
>
>If calls on resource-allocation functions were made through a
>library of new accessing routines, it seems to me that automatic
>task-termination might be possible.  The 'rules' of the new routines
>would be that petitioners must SIMULTANEOUSLY specify not only the
>resources that they wish allocated (memory, I/O ports, libraries, etc),
>but the address of a 'cleanup' function as well.  The new routine would
>append the cleanup information to a linked list, and then pass off to
>the appropriate allocator.
>

Reading this I remember, that a Task-Structure contains a Cleanup_Code
pointer. However documentation about it is bad. 
What does the Standard-Cleanup do, and how do I (from "C") install my 
own CleanupCode? My Programs always have a central Cleanup-Code that
cleans up everything, if called from every point in the Program. 
So how do I get it there?

Cu
Markus
.-----------------------------------------------------------------.
|  shimoda@rmi.de       `---'   The last remaining adventure      |
|  shimoda@gopnbg.UUCP  |O o|   since there are no more tigers:   |
|                       ==Y==   Doublebuffered async. I/O       _ |
|----------------------- `U' ------------------------------  _ // |
|  Good terminalpackages     begin with A: AmigaCall, A-Ta.. \//  |
`-----------------------------------------------------------------'
Technical Details
Message-ID: <486@infohh.rmi.de>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!lll-winken!uunet!mcvax!unido!rmi!infoac!infohh!shimoda
References: <89Jan14.134000est.2661@godzilla.eecg.toronto.edu> <3771@druwy.ATT.COM> <13706@cup.portal.com> <3719@tekig5.PEN.TEK.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!ames!lll-winken!uunet!mcvax!unido!rmi!infoac!infohh!shimoda
From: shimoda@infohh.rmi.de (Markus Schmidt)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Task KILL for Amiga
Keywords: Resource tracking
Message-ID: <486@infohh.rmi.de>
Date: 28 Jan 89 17:47:00 GMT
References: <89Jan14.134000est.2661@godzilla.eecg.toronto.edu> <3771@druwy.ATT.COM> <13706@cup.portal.com> <3719@tekig5.PEN.TEK.COM>
Reply-To: shimoda@infohh.rmi.de (Markus Schmidt)
Organization: RMI Net * Aachen/Hamburg/Flensburg * W.Germany
Lines: 28