🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to peek at queued Intution msgs?

#12427
From: Doug Walker
Date: Fri, 28 Apr 1989 15:00
13 lines
1072 bytes
In article <11640015@hpfcdc.HP.COM> cunniff@hpfcdc.HP.COM (Ross Cunniff) writes:
>What is the best way to look for a SPECIFIC message
>on a window's UserPort?   For example, say I have an

Messages in a MsgPort are simply items in a linked list, linked with a
Node structure by Exec.  For your application, you can simply do a Forbid()
(to prevent task switches), walk the linked list looking for the appropriate
cancellation code, then Permit().  If you found the cancel code, you would
then GetMsg() until you get it.

Anybody know why this wouldn't work?  How safe is it from DOS upgrades, etc?

--- Doug
Technical Details
Message-ID: <1017@sas.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!rutgers!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!haven!uflorida!gatech!ncsuvx!mcnc!rti!sas!walker
References: <11640015@hpfcdc.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!rutgers!tut.cis.ohio-state.edu!ucbvax!pasteur!ames!haven!uflorida!gatech!ncsuvx!mcnc!rti!sas!walker
From: walker@sas.UUCP (Doug Walker)
Newsgroups: comp.sys.amiga.tech
Subject: Re: How to peek at queued Intution msgs?
Message-ID: <1017@sas.UUCP>
Date: 28 Apr 89 15:00:18 GMT
References: <11640015@hpfcdc.HP.COM>
Reply-To: walker@sas.UUCP (Doug Walker)
Organization: SAS Institute Inc, Cary NC
Lines: 13