home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / amiga / programm / 19146 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.4 KB  |  39 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!psinntp!isc-newsserver!ultb!eas3714
  3. From: eas3714@ultb.isc.rit.edu (E.A. Story)
  4. Subject: Re: Aborting Timer requests
  5. Message-ID: <1993Jan25.090416.14859@ultb.isc.rit.edu>
  6. Keywords: Wait(), Signals, timer.device
  7. Sender: news@ultb.isc.rit.edu (USENET News System)
  8. Nntp-Posting-Host: ultb-gw.isc.rit.edu
  9. Organization: Rochester Institute of Technology
  10. References: <nsgls*pb1@wolf359.UUCP>
  11. Date: Mon, 25 Jan 1993 09:04:16 GMT
  12. Lines: 25
  13.  
  14. In article <nsgls*pb1@wolf359.UUCP> eric@wolf359.UUCP (Eric Edwards) writes:
  15. >Can someone give me some insight on the proper way to abort a timer
  16. >request?
  17. >
  18. >My query is:  Why is the signal still active after AbortIO and WaitIO? 
  19. >What do I need to do to reset it?
  20.  
  21. I use: (no if statement)
  22. AbortIO(timereq)  
  23. Wait(sigbit)
  24. WaitIO(timereq)
  25.  
  26. I don't use CheckIO because AbortIO won't do anything anyway if a
  27. request has returned, making CheckIO superfluous.  I use Wait to
  28. clear the Sigbit if the request has already returned, or 
  29. just wait 'til it returns and THEN clear the Sigbit.  Then the WaitIO 
  30. automatically cleans up the request for me.
  31.  
  32. Your routine didn't work because WaitIO doesn't clear out the sigbit if
  33. the request has already returned when it's called.
  34.  
  35. -- 
  36. "THAT is a DRY turtle.  That turtle is NOT moist!"
  37. Ezra Story, a student at RIT, and
  38. eas3714@ultb.isc.rit.edu, his trusty(?) mailing address.
  39.