I was sure this must be in one of the FAQs but I couldn't see it there. I would like to be able to wait for either a normal XEvent or some other action like data ready on a message queue. Normally I would just use the select() call with the appropriate file descriptors and everything would be fine.
I can't see any way of doing this under X11. If I use XNextEvent() then that blocks and I can't handle the other source of input. If I use one of the non-blocking versions of XNextEvent() then I have to busy poll alternately checking the 2 sources of input.
There must be a way around this ?
--
Glenn Coombs, On the other hand, eagles soar, but Philips Research Labs, weasels don't get sucked into jet engines. Redhill,
ENGLAND. Tel: +44 1293 815744 email: glenn@xxx.research.philips.com
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 379 |
Nodes: | 16 (2 / 14) |
Uptime: | 68:13:01 |
Calls: | 8,084 |
Calls today: | 2 |
Files: | 13,068 |
Messages: | 5,849,529 |