[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: (ITS#3950) sched_yield() considered harmful
Howard Chu wrote:
> Thanks for pointing this out. I'm not sure why we ever used
> sched_yield() in the first place, it was known to cause headaches on
> the Solaris build as well. We should probably leave it as a last
> resort, and prefer pthread_yield() instead.
>
I take this back. pthread_yield was deleted from the POSIX pthread
specification. sched_yield is the correct call to be used by all
POSIX-compliant apps.
--
-- Howard Chu
Chief Architect, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc
OpenLDAP Core Team http://www.openldap.org/project/