home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19272 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.9 KB

  1. Path: sparky!uunet!utcsri!torn!spool.mu.edu!caen!batcomputer!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!mbear!monster
  2. From: monster@mbear.apana.org.au (Martin Ozolins)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Aborting Timer requests
  5. Distribution: world
  6. Message-ID: <monster.068j@mbear.apana.org.au>
  7. References:  <nsgls*pb1@wolf359.UUCP>
  8. X-NewsSoftware: GRn-beta 1.16g (10.12.92) by Michael B. Smith & Mike Schwartz
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=iso-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. Date: 26 Jan 93 08:27:25 PST
  13. Organization: Bears Incorporated
  14. Lines: 40
  15.  
  16. In article <nsgls*pb1@wolf359.UUCP> eric@wolf359.UUCP (Eric Edwards) writes:
  17. > Can someone give me some insight on the proper way to abort a timer
  18. > request?
  19. > What I have been doing is:
  20. > if (!CheckIO( (struct IORequest *) TimerIO))
  21. > {
  22. >     AbortIO((struct IORequest *) TimerIO);
  23. > }
  24. > WaitIO((struct IORequest *) TimerIO);
  25. > I then issue a new time request using the same timerequest struct.  The
  26. > timeval struct is reinitialized, of course.
  27. > If then Wait(1L << TimerMP->mp_SigBit ).  TimerMP was used to create
  28. > TimerIO.
  29. > Instead of waiting the apropriate time, Wait returns immediately with the
  30. > the signal value for my timer request.
  31. > Then, when I CheckIO(TimerIO), I find the timer request is still active!
  32. > From then on, my timer requests are non-functional.
  33. > My query is:  Why is the signal still active after AbortIO and WaitIO? 
  34. > What do I need to do to reset it?
  35. > Amiga 3000, AmigaOS 2.04. 
  36.  
  37. This is the exact same problem that I was having.
  38. No one could explain why it was happening so I had to change the way I did things.
  39. At least now I know there is someone else out there who has the same problem.
  40.  
  41.  
  42. -- 
  43.  
  44. Martin Ozolins :Internet monster@mbear.apana.org.au
  45. Victoria       :FIDO 3:633/359.6 AMIGANET 41:300/359.6 TRINET 42:8699/8.6
  46. Australia      :Amiga Programmer, UniSYS 1100/2200 Systems Programmer 
  47.