🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: A little help please...

#11643
From: Chuck McManis
Date: Wed, 01 Mar 1989 19:55
39 lines
1667 bytes
In article <12718@gryphon.COM> ddave@pnet02.cts.com (David Donley) writes:
>I was wanting to draw from an interrupt because my main task will probably be
>doing gobs of hard disk access and heavy calculation, and I do not want the
>thing to jiggle... Oh well...

Who said anything about your "main" task? Let me rephrase, when you get the
interrupt signal your high priority drawing task to do the drawing, as soon
as you get out of the interrupt it will draw, guarunteed. Think of the 
flow like this :

	main
		Main initialization ...

		set up high priority drawing task
			LoadSeg();
			AddTask();
			FindPort("DrawingPort"); /* Wait for it to init */

		set up interrupt handler
			AddIntHandler();

		Finish main initialization start heavy calculations
		and gobs of hard disk access ...
		
		remove interrupt handler
			RemIntHandler();

		Kill off your Drawing Task
			PutMsg(DrawingPort, KILL_YOURSELF);
			WaitPort(ReplyPort); /* Wait for the reply */
			RemTask();
	
		free up whatever was allocated.
	end


--Chuck McManis
uucp: {anywhere}!sun!cmcmanis   BIX: cmcmanis  ARPAnet: cmcmanis@sun.com
These opinions are my own and no one elses, but you knew that didn't you.
Technical Details
Message-ID: <91901@sun.uucp>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pepper!cmcmanis
References: <12718@gryphon.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!sun!pepper!cmcmanis
From: cmcmanis%pepper@Sun.COM (Chuck McManis)
Newsgroups: comp.sys.amiga.tech
Subject: Re: A little help please...
Message-ID: <91901@sun.uucp>
Date: 1 Mar 89 19:55:41 GMT
References: <12718@gryphon.COM>
Sender: news@sun.uucp
Reply-To: cmcmanis@sun.UUCP (Chuck McManis)
Organization: Sun Microsystems, Mountain View
Lines: 39