home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.unix.wizards:3787 comp.unix.questions:10713
- Newsgroups: comp.unix.wizards,comp.unix.questions
- Path: sparky!uunet!cs.utexas.edu!hellgate.utah.edu!fcom.cc.utah.edu!park.uvcc.edu!ns.novell.com!gateway.novell.com!thisbe.Eng.Sandy.Novell.COM!terry
- From: terry@thisbe.Eng.Sandy.Novell.COM (Terry Lambert)
- Subject: Re: reliable signals under BSD / SVR4
- Message-ID: <1992Sep4.004436.24755@gateway.novell.com>
- Keywords: signals, reliable, software interrupts
- Sender: news@gateway.novell.com (NetNews)
- Nntp-Posting-Host: thisbe.eng.sandy.novell.com
- Organization: Novell NPD -- Sandy, UT
- References: <acourtny.715263267@unix1.tcd.ie> <Btwqvs.LAI@zeus.dialix.oz.au> <acourtny.715556934@unix1.tcd.ie>
- Date: Fri, 4 Sep 1992 00:44:36 GMT
- Lines: 25
-
- In article <acourtny.715556934@unix1.tcd.ie> acourtny@unix1.tcd.ie (Antony A. Courtney) writes:
- >There are some "hacks" to get around this, if you're environment lets you
- >write the centralized control loop for the program. But usually SIGIO is
- >useful in cases where that isn't possible, e.g. when using an X toolkit.
-
- Wrong. In XTMainAppLoop() in the X toolkit, there are hooks for
- adding input sources to be "select()"ed on. Since this is the toolkit used
- to build most other toolkits (ie: Motif), this works there also. The
- routines of interest are:
-
- XtAddInput()
- XtAppAddInput()
- XtRemoveInput()
- XtRemoveAllInputs()
-
- Read the fine manual.
-
-
- Terry Lambert
- terry_lambert@gateway.novell.com
- terry@icarus.weber.edu
-
- ---
- Disclaimer: Any opinions in this posting are my own and not those of
- my present or previous employers.
-