[fixed] Fix the linux yield logic
Re: [patch] Fix the linux yield logic
Yeah, that was the original question - does nanosleep(0) give up the processor. I've searched for an answer to that rather long yesterday and I think it doesn't and we really need to use 1. It guarantees only that it gives up the processor until sleep-time is over, the behavior for 0 is undefined - I even stumbled upon some thread on kernel mailing list where it seems that people had run into the same thing when this behavior was changed at some time.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm