Re: select(), epoll(), etc... in GUI?



Good info, thanks people. I have found that Xt provides XtAddInput(), GTK+
provides IO Channels, ...and Qt provides QSocketNotify thingy(?)

Still trying to understand the signals and how you can safely perform operations
in them. Ahha, a least for a single threaded process, the signal handler
function will be 'atomic' right? It will not be itself interrupted by your main
process code. So you could define some global variables that the signal handler
can write to, and that should be read only by the rest of the process. I don't
think I could safely modify a GUI event queue from a signal handler though.

I think GTK IO Channels will solve my specific problem since im using wxGTK.
I'll try that.

--
_______________
hello friend!
i tend to ignore the following kinds of replies: top-bottom-middle posting,
grammar, spelling, read the manual you %#!, search google you !@%... thank you.
.



Relevant Pages

  • Re: How to catch a user interruption?
    ... The signal handling is gtk stuff ok. ... But the way to do that inside is way out of gtk to me. ... By the way, if you are executing code asynchronously (i.e. handling GUI events) using any other mechanism that standard C signals then the C language does not tell you how to avoid synchronisation problems, e.g. your main code being half way through reading a variable when the asynchronous code writes to it thus causing you to read half of one value and half of another, even volatile sig_atomic_t is not guaranteed for that, only for C signals. ...
    (comp.lang.c)
  • Re: Generic Library for C.
    ... When signals are registered, are they all put in to a global static list? ... I really only understood gtk signals after writing a small signal system, ... > widgets have rather complex implementations, ...
    (comp.os.linux.development.apps)
  • Riggers Diary -- comprehension
    ... so does your new telly get any channels at all?" ... aerial system has all the digital signals on it loud and clear." ... "It's Colin, Bill, where do I get a satnav card, I've looked all over." ... can you send us a splinter?" ...
    (uk.tech.digital-tv)
  • Im going to expose myself
    ... An elevated conductor designed to pick up radio and TV signals. ... The UHF band has channels numbered from 21 to 68. ... radio received by satellite or via DTT. ... Unit built into a satellite receiver to unscramble a picture which ...
    (uk.tech.digital-tv)
  • Comcast sucks (again) (NDC)
    ... HD enthusiasts crying foul over cable TV's crunched signals By CHRIS ... videographer who subscribes to Comcast Corp.'s TV service. ... They blame the increased signal compression being used to squeeze ... The problem is viewers want more HD channels at a time when many cable ...
    (rec.music.gdead)