home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!sdd.hp.com!mips!mips!munnari.oz.au!mel.dit.csiro.au!yarra!bohra.cpg.oz.au!jrp
- From: jrp@bohra.cpg.oz.au (John Pitman)
- Newsgroups: comp.sys.hp
- Subject: timer interrupts
- Message-ID: <1992Aug23.030049.20065@bohra.cpg.oz.au>
- Date: 23 Aug 92 03:00:49 GMT
- Organization: Computer Power Software
- Lines: 23
-
- Hi there,
- I aqm trying to do some interrupt trapping to effectively time out stdin reads
- but i dont know what sequence to use what calls in. The sequence i want to do
- is as follows:
-
- timer_fired = FALSE
- set timer (say 10 secs)
- gets()
- if (timer_fired)
- {
- something useful
- reset timer ?
- return flag to caller
- }
- else
- {
- return data read tp caller
- }
-
- can anybody point me at some code please. I can see some calls in the books
- which look approriate, but dont know what sequence they sre used in.
- jp
-
-