home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4041 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: doc.ic.ac.uk!not-for-mail
  2. From: mdf@doc.ic.ac.uk (Martin Frost)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: MsgPorts and lists
  5. Date: 16 Feb 1996 16:47:42 -0000
  6. Organization: Dept. of Computing, Imperial College, University of London, UK.
  7. Distribution: world
  8. Message-ID: <4g2cfe$1m0@oak73.doc.ic.ac.uk>
  9. References: <1527.6618T48T2102@amiga.pp.se>
  10. Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
  11. NNTP-Posting-Host: oak73.doc.ic.ac.uk
  12. X-Newsreader: mxrn 6.18-23
  13.  
  14.  
  15. In article <1527.6618T48T2102@amiga.pp.se>, mikael.berglund@amiga.pp.se (Mikael Berglund) writes:
  16. >Some thoughts popped up: Since there is no list arbitration, to my
  17. >knowledge anyway, from Intuition/Exec on the list, what keeps the situation
  18. >of scanning straight into oblivion while Intuition/Exec has partly added a
  19. >new message to the list from occuring? Is the addition of messages to the
  20. >list protected in some hidden way? So the list is always valid for reading.
  21.  
  22. GetMsg() basically does a RemHead() bracketed in an Enable()/Disable() pair.
  23. I don't know if it's future proof, but it would certainly work on all current
  24. systems to Disable(), scan the list, remove zero or more messages, Enable().
  25.  
  26. Martin
  27.