[PATCH] pthread_yield

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Thu Feb 10 05:50:00 GMT 2011


pthread_yield(3) was part of the POSIX.1c drafts but never made it into
the final standard.  Nevertheless, it is provided by Linux[1],
FreeBSD[2], OpenBSD[3], AIX[4], and possibly other *NIXes.  

"On Linux, this function is implemented as a call to sched_yield(2)."
Patch attached.


Yaakov


[1] http://www.kernel.org/doc/man-pages/online/pages/man3/pthread_yield.3.html
[2] http://www.freebsd.org/cgi/man.cgi?query=pthread_yield
[3] http://www.openbsd.org/cgi-bin/man.cgi?query=pthread_yield
[4] http://publib.boulder.ibm.com/infocenter/aix/v6r1/index.jsp?topic=/com.ibm.aix.basetechref/doc/basetrf1/pthread_yield.htm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pthread_yield.patch
Type: text/x-patch
Size: 2579 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-patches/attachments/20110210/419b0e3a/attachment.bin>


More information about the Cygwin-patches mailing list