Path: 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 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