Select() portability

Our application is relyingheavily on “select()” to listen to several
pipes/fd for events/messages. Somehow I will have to listen
to the SDL events with select()…

BTW, I don’t know if you care, but this isn’t portable to Win32.
The best way is to have a global (or several global) event queues,
and manage them with semaphores. I think this is faster than pipes
and select(), but I’m not sure.

See ya!
-Sam Lantinga (slouken at devolution.com)–
Author of Simple DirectMedia Layer -
http://www.devolution.com/~slouken/SDL/