home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!pipex!warwick!uknet!sys.uea.ac.uk!eric
- From: eric@wolf359.UUCP (Eric Edwards)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Aborting Timer requests
- Keywords: Wait(), Signals, timer.device
- Message-ID: <nsgls*pb1@wolf359.UUCP>
- Date: 23 Jan 93 19:20:23 GMT
- Sender: news@sys.uea.ac.uk
- Organization: Engineers in Exile
- Lines: 31
- Nntp-Posting-Host: 128.206.1.100
- X-Newsreader: Arn V1.00 beta rel2
-
- 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.
-
- Do NOT trust 'reply'! wolf359.ustores.missouri.edu is BOGUS
- Smart: eric@wolf359.uucp Dumb: wuarchive.wustl.edu!wolf359!eric
- "Please leave. I have a bomb and I'd quite like to explode it"
-