home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / amiga / programm / 18093 < prev    next >
Encoding:
Internet Message Format  |  1993-01-04  |  1.8 KB

  1. Path: sparky!uunet!think.com!rpi!ghost.dsi.unimi.it!univ-lyon1.fr!taloa.unice.fr!beust
  2. From: beust@aurora.unice.fr (Cedric Beust)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: RKM description of WaitPort()
  5. Date: 4 Jan 1993 11:53:59 +0100
  6. Organization: University of Nice Sophia-Antipolis, France
  7. Lines: 30
  8. Distribution: world
  9. Message-ID: <1i9507INN2gl@aurora.unice.fr>
  10. References: <1993Jan1.221013.26070@urbana.mcd.mot.com> <hebrais.10x6@mirkwood.CAM.ORG>
  11. NNTP-Posting-Host: aurora.unice.fr
  12.  
  13.  
  14. In article <hebrais.10x6@mirkwood.CAM.ORG>, hebrais@mirkwood.CAM.ORG (Philippe
  15. Hebrais) writes:
  16. >[ qbarnes@urbana.mcd.mot.com (Quentin Barnes) writes in article
  17. ><1993Jan1.221013.26070@urbana.mcd.mot.com>: ]
  18. >>I was reading the description of the WaitPort() call in the RKM:Libraries
  19. >>and was confused by the description.  On page 504, it says:
  20. >>
  21. >>       ...  It is possible to receive a signal for a port without
  22. >>       a message being present yet.  The code processing the
  23. >>       messages should be able to handle this. ...
  24. >>
  25. >>do this.  What am I missing?  What does the documentation actually
  26. >>saying?
  27. >
  28. >It is trying to say that when a signal is received, any number of
  29. >messages may have arrived, including zero.  You should loop on
  30. >GetMsg( port) until it returns NULL.  That "yet" is a word too many.
  31.  
  32.     If that doesn't make sense to you (Quentin), just think that the OS may
  33.     not be the only one that sends a signal to your task. Even though sending
  34.     a lonely signal without any messages may seem strange, it can happen (blankers
  35.     used to work this way). So you must handle the case, simply by checking that
  36.     GetMsh() returns a non-NULL value.
  37.  
  38. --
  39. Cedric BEUST, beust@sa.inria.fr, Bull Research Koala proj, KoalaBus & xforum
  40. Pho:(33) 93.65.78.07(.66 Fax), INRIA, B.P.93 - 06902 Sophia Antipolis, FRANCE.
  41.  
  42.     
  43.