home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!newsflash.concordia.ca!clyde.concordia.ca!altitude!mirkwood.CAM.ORG!hebrais
- From: hebrais@mirkwood.CAM.ORG (Philippe Hebrais)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: RKM description of WaitPort()
- Message-ID: <hebrais.10x6@mirkwood.CAM.ORG>
- Date: 2 Jan 93 18:21:44 GMT
- References: <1993Jan1.221013.26070@urbana.mcd.mot.com>
- Organization: Secte des adorateurs des semiconducteurs
- Lines: 22
- X-Newsreader: MeNews 2.8.0
-
- [ qbarnes@urbana.mcd.mot.com (Quentin Barnes) writes in article <1993Jan1.221013.26070@urbana.mcd.mot.com>: ]
- >I was reading the description of the WaitPort() call in the RKM:Libraries
- >and was confused by the description. On page 504, it says:
- >
- > ... It is possible to receive a signal for a port without
- > a message being present yet. The code processing the
- > messages should be able to handle this. ...
- >
- >do this. What am I missing? What does the documentation actually
- >saying?
-
- It is trying to say that when a signal is received, any number of
- messages may have arrived, including zero. You should loop on
- GetMsg( port) until it returns NULL. That "yet" is a word too many.
-
- >--
- >Quentin Barnes
- >qbarnes@urbana.mcd.mot.com | ..!uiucuxc!udc!qbarnes
- --
- -- ,
- Philippe Hebrais hebrais@mirkwood.cam.org
- Voix: (514)731-9146 uunet!philmtl!altitude!mirkwood!hebrais
-