[SDL] Why not use select?

Raimar Falke rf13 at inf.tu-dresden.de
Mon Mar 17 00:35:02 PST 2003


On Sun, Mar 16, 2003 at 03:21:17PM -0800, Sam Lantinga wrote:
> > On Sat, Mar 15, 2003 at 07:33:02PM -0800, Sam Lantinga wrote:
> > > > That may be true but I think the wrong abstraction was choosen
> > > > here. If select or equivalent function is available and the windowing
> > > > system can be used together with it select or equivalent function
> > > > should be used. This will cover at least X11 and win32. In the other
> > > > cases you can fall back to polling.
> > > 
> > > We're considering something like that for SDL 2.0, 
> 
> > So SDL 1.2 won't be changed?! When will SDL 2.0 be published?
> 
> SDL 1.2 is API frozen, but I'm happy to accept patches that don't 
> affect binary compatibility.

To get access to a key advantage of select (the native network
support) the API needs to be extended. The SDL equivalent of
gdk_input_add / XtAppAddInput needs to be added. And also the
corresponding remove function.

Is this possible?

	Raimar

-- 
 email: rf13 at inf.tu-dresden.de
 "Sit, disk, sit. Good boy. Now spin up. Very good. Here's a netscape
  cookie for you. Fetch me some data. Come on, you can do it. No, not that
  data. Bad disk. Bad." 
    -- Calle Dybedahl, alt.sysadmin.recovery





More information about the SDL mailing list