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