Article View: comp.sys.amiga.tech
Article #11442Re: Ultimate Wait-GetMsg strategy (?)
From: Brian Rhodefer
Date: Mon, 13 Feb 1989 22:59
Date: Mon, 13 Feb 1989 22:59
20 lines
1080 bytes
1080 bytes
I have obviously not yet attained the Zen of the Amiga, because
the construct under discussion,
>:while (1) {
>: while (!(imsg= GetMsg(win->UserPort)))
>: Wait (1<<win->UserPort->mp_SigBit);
>: select imsg->Class and break when ended
>:}
doesn't seem "*perfectly fine*" to me at all, notwithstanding Tomas R's
endorsement.
Presuming that the fragment was quoted from the original posting without
distortion, it sure looks to me that for the "select imsg->Class and break"
portion of the code, the "imsg" pointer is NULL!
Still unenlightened,
Brian Rhodefer
Technical Details
Message-ID:
<3777@tekig5.PEN.TEK.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!tektronix!tekig5!brianrReferences:
<8902100658.AA16049@postgres.Berkeley.EDU>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!decvax!tektronix!tekig5!brianr From: brianr@tekig5.PEN.TEK.COM (Brian Rhodefer) Newsgroups: comp.sys.amiga.tech Subject: Re: Ultimate Wait-GetMsg strategy (?) Message-ID: <3777@tekig5.PEN.TEK.COM> Date: 13 Feb 89 22:59:28 GMT References: <8902100658.AA16049@postgres.Berkeley.EDU> Reply-To: brianr@tekig5.PEN.TEK.COM (Brian Rhodefer) Organization: Tektronix, Inc., Beaverton, OR. Lines: 20