sched_yield.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  2. <HTML>
  3. <HEAD>
  4. <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
  5. <TITLE>&quot;SCHED_YIELD&quot;(P) manual page</TITLE>
  6. <META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.3 (Linux)">
  7. <META NAME="CREATED" CONTENT="20050505;14034600">
  8. <META NAME="CHANGED" CONTENT="20050505;14050300">
  9. <!-- manual page source format generated by PolyglotMan v3.2, -->
  10. <!-- available at http://polyglotman.sourceforge.net/ -->
  11. </HEAD>
  12. <BODY LANG="en-GB" BGCOLOR="#ffffff" DIR="LTR">
  13. <H4>POSIX Threads for Windows – REFERENCE - <A HREF="http://sources.redhat.com/pthreads-win32">Pthreads-w32</A></H4>
  14. <P><A HREF="index.html">Reference Index</A></P>
  15. <P><A HREF="#toc">Table of Contents</A></P>
  16. <H2><A HREF="#toc0" NAME="sect0">Name</A></H2>
  17. <P>sched_yield - yield the processor
  18. </P>
  19. <H2><A HREF="#toc1" NAME="sect1">Synopsis</A></H2>
  20. <P><B>#include &lt;sched.h&gt; </B>
  21. </P>
  22. <P><B>int sched_yield(void);</B>
  23. </P>
  24. <H2><A HREF="#toc2" NAME="sect2">Description</A></H2>
  25. <P>The <B>sched_yield</B> function shall force the running thread to
  26. relinquish the processor until it again becomes the head of its
  27. thread list. It takes no arguments.
  28. </P>
  29. <H2><A HREF="#toc3" NAME="sect3">Return Value</A></H2>
  30. <P>The <B>sched_yield</B> function shall return 0 if it completes
  31. successfully; otherwise, it shall return a value of -1 and set <I>errno</I>
  32. to indicate the error.
  33. </P>
  34. <H2><A HREF="#toc4" NAME="sect4">Errors</A></H2>
  35. <P>No errors are defined.
  36. </P>
  37. <P><I>The following sections are informative.</I>
  38. </P>
  39. <H2><A HREF="#toc5" NAME="sect5">Examples</A></H2>
  40. <P>None.
  41. </P>
  42. <H2><A HREF="#toc6" NAME="sect6">Application Usage</A></H2>
  43. <P>None.
  44. </P>
  45. <H2><A HREF="#toc7" NAME="sect7">Rationale</A></H2>
  46. <P>None.
  47. </P>
  48. <H2><A HREF="#toc8" NAME="sect8">Future Directions</A></H2>
  49. <P>None.
  50. </P>
  51. <H2><A HREF="#toc9" NAME="sect9">See Also</A></H2>
  52. <P>The Base Definitions volume of IEEE&nbsp;Std&nbsp;1003.1-2001,
  53. <I>&lt;sched.h&gt;</I>
  54. </P>
  55. <H2><A HREF="#toc10" NAME="sect10">Copyright</A></H2>
  56. <P>Portions of this text are reprinted and reproduced in electronic
  57. form from IEEE Std 1003.1, 2003 Edition, Standard for Information
  58. Technology -- Portable Operating System Interface (POSIX), The Open
  59. Group Base Specifications Issue 6, Copyright (C) 2001-2003 by the
  60. Institute of Electrical and Electronics Engineers, Inc and The Open
  61. Group. In the event of any discrepancy between this version and the
  62. original IEEE and The Open Group Standard, the original IEEE and The
  63. Open Group Standard is the referee document. The original Standard
  64. can be obtained online at <A HREF="http://www.opengroup.org/unix/online.html">http://www.opengroup.org/unix/online.html</A>
  65. .
  66. </P>
  67. <HR>
  68. <P><A NAME="toc"></A><B>Table of Contents</B></P>
  69. <UL>
  70. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect0" NAME="toc0">Name</A>
  71. </P>
  72. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect1" NAME="toc1">Synopsis</A>
  73. </P>
  74. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect2" NAME="toc2">Description</A>
  75. </P>
  76. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect3" NAME="toc3">Return
  77. Value</A>
  78. </P>
  79. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect4" NAME="toc4">Errors</A>
  80. </P>
  81. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect5" NAME="toc5">Examples</A>
  82. </P>
  83. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect6" NAME="toc6">Application
  84. Usage</A>
  85. </P>
  86. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect7" NAME="toc7">Rationale</A>
  87. </P>
  88. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect8" NAME="toc8">Future
  89. Directions</A>
  90. </P>
  91. <LI><P STYLE="margin-bottom: 0cm"><A HREF="#sect9" NAME="toc9">See
  92. Also</A>
  93. </P>
  94. <LI><P><A HREF="#sect10" NAME="toc10">Copyright</A>
  95. </P>
  96. </UL>
  97. </BODY>
  98. </HTML>