OSDN Git Service

* cygwin.din (pthread_yield): Export as alias to sched_yield.
authoryselkowitz <yselkowitz>
Thu, 10 Feb 2011 19:51:13 +0000 (19:51 +0000)
committeryselkowitz <yselkowitz>
Thu, 10 Feb 2011 19:51:13 +0000 (19:51 +0000)
* include/pthread.h (pthread_yield): Declare.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* posix.sgml (std-deprec): Add pthread_yield.

winsup/cygwin/ChangeLog
winsup/cygwin/cygwin.din
winsup/cygwin/include/cygwin/version.h
winsup/cygwin/include/pthread.h
winsup/cygwin/posix.sgml

index 8823eb8..d3321ba 100644 (file)
@@ -1,3 +1,10 @@
+2011-02-09  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
+
+       * cygwin.din (pthread_yield): Export as alias to sched_yield.
+       * include/pthread.h (pthread_yield): Declare.
+       * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
+       * posix.sgml (std-deprec): Add pthread_yield.
+
 2011-02-09  Christopher Faylor  <me+cygwin@cgf.cx>
 
        * cygheap.cc: Add some __stdcall decoration where appropriate.
index 2e7e647..d9aa23b 100644 (file)
@@ -1245,6 +1245,7 @@ pthread_setspecific SIGFE
 pthread_sigmask SIGFE
 pthread_suspend SIGFE
 pthread_testcancel SIGFE
+pthread_yield = sched_yield SIGFE
 ptsname SIGFE
 putc SIGFE
 _putc = putc SIGFE
index c757827..b600e49 100644 (file)
@@ -399,12 +399,13 @@ details. */
       233: Add TIOCGPGRP, TIOCSPGRP.  Export llround, llroundf.
       234: Export program_invocation_name, program_invocation_short_name.
       235: Export madvise.
+      236: Export pthread_yield.
      */
 
      /* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
 
 #define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 235
+#define CYGWIN_VERSION_API_MINOR 236
 
      /* There is also a compatibity version number associated with the
        shared memory regions.  It is incremented when incompatible
index 73759dd..1e0cbf4 100644 (file)
@@ -194,6 +194,7 @@ void pthread_testcancel (void);
 
 int pthread_suspend (pthread_t);
 int pthread_continue (pthread_t);
+int pthread_yield (void);
 
 #ifdef __cplusplus
 }
index b085ddf..9f73b3d 100644 (file)
@@ -1225,6 +1225,7 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008).</para>
     pthread_continue           (XPG2)
     pthread_getsequence_np     (Tru64)
     pthread_suspend            (XPG2)
+    pthread_yield              (POSIX.1c drafts)
     pututline                  (XPG2)
     putw                       (SVID)
     rindex                     (SUSv3)