home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4576 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.1 KB  |  53 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: hearst.acc.Virginia.EDU!murdoch!usenet
  3. From: "tmb@virginia.edu" <tmb@virginia.edu>
  4. Subject: Missing Signals?
  5. X-Nntp-Posting-Host: cbt0pc.bio.virginia.edu
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <313705A1.6324@virginia.edu>
  8. Sender: usenet@murdoch.acc.Virginia.EDU
  9. Content-Transfer-Encoding: 7bit
  10. Cc: jolinger@bix.com, srrodewa@eclat.uccs.edu
  11. Organization: University of Virginia
  12. Mime-Version: 1.0
  13. Date: Fri, 1 Mar 1996 14:11:45 GMT
  14. X-Mailer: Mozilla 2.0 (Win95; I)
  15.  
  16. I'm having a bad time trying to solve an intermittant problem of
  17. not being able to detect a task Signal that should be set
  18. by the timer.device.
  19.  
  20. My code starts a timer on a correctly allocated Signal for
  21. a five second period and then waits on both this signal and on
  22. the signal associated with the Intuition message port of its
  23. window.
  24.  
  25. It makes sure to check for both signals after each Wait() and
  26. processes the intuition message and/or restarts the timer as
  27. appropriate.
  28.  
  29. Rarely, the timer Signal is never set. I noticed it happening
  30. when I scroll the GadTools listview gadget that the program
  31. uses, and verified that I can pretty much force it to happen
  32. within 30 seconds by continuous rapid ("frenzied") scrolling of the
  33. listview, if there is also another high priority process running at the same 
  34. time. ie, I might see the problem once an hour with heavy, but
  35. "normal" use of the listview when this program is the only one
  36. running, but much more often under the heavy usage conditions.
  37.  
  38. I have only one Wait(), and, so far, cannot see how my code could
  39. be clearing the Signal without noticing it.
  40.  
  41. What I'd like to hear is information/opinion on whether this is a known
  42. glitch in the timer device (or Intuition message handling or GadTools
  43. processing) - or whether there might be a known, but subtle, sequence
  44. of multitasking activities causing it and there is a remedy that I could
  45. use to avoid it (eg, disable/enable around the timer DoIO(), etc)
  46.  - or whether it is something that just won't happen with correct use of the 
  47. system calls, and I better look even harder at my own code.
  48.  
  49. Thanks,
  50.  
  51. Tom Breeden
  52. tmb@virginia.edu
  53.