[SDL] no SDL_YieldThread() function?

David Olofson david at olofson.net
Sat Mar 5 18:43:12 PST 2005


On Sunday 06 March 2005 02.56, Petri Latvala wrote:
> On Sat, Mar 05, 2005 at 06:11:34PM -0600, braddabug wrote:
> > Is there any way to yield in an SDL thread? Why isn't there an 
> > SDL_YieldThread() function?
> 
> SDL_Delay(0) has that same effect.

Nope, that's an undocumented side effect of the way the underlying 
Win32 call works.

For example, SDL_Delay(0) on Linux does precisely nothing. (At least, 
that was the case last time I checked.)


//David Olofson - Programmer, Composer, Open Source Advocate

.- Audiality -----------------------------------------------.
|  Free/Open Source audio engine for games and multimedia.  |
| MIDI, modular synthesis, real time effects, scripting,... |
`-----------------------------------> http://audiality.org -'
   --- http://olofson.net --- http://www.reologica.se ---




More information about the SDL mailing list