On Mon, 22 Sep 2003, Ian Romanick wrote:
> > The fact that there may be different best implementations
> > with various kernels only further supports that XFree86 should
> > export a xf86Yield() function which "does the right thing" on
> > that platform. For Linux <= 2.4 that appears to be sched_yield().
> > I don't know about the other OSes though, which is why I brought
> > this up on this list.
>
> Having xf86Yield as a wrapper is a very good idea. We just have to be
> careful how it's implemented (irony intentional). :)
So back to my original question. I'm thinking this looks like
void xf86Yield()
{
sched_yield();
}
for now. Which OSes do not have sched_yield()? I'm just
trying to avoid breaking the build. It can be a noop on
the platforms that don't have sched_yield() (they'll be no
worse off then they were before).
Mark.
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel