Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2011-02-10 13:51:14 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2011-02-10 13:51:14 +0300
commit3696acf49766fe9a2483939df47b21a7d3f8f96c (patch)
treeb59d45f9a08e9c74681b5f719d92df3dac7e6c97
parentca1953eeee9e1823c6cf9bfb0d7595112fb110ac (diff)
* 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.
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/cygwin.din1
-rw-r--r--winsup/cygwin/include/cygwin/version.h3
-rw-r--r--winsup/cygwin/include/pthread.h1
-rw-r--r--winsup/cygwin/posix.sgml1
5 files changed, 12 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 8823eb880..d3321baf3 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/cygwin.din b/winsup/cygwin/cygwin.din
index 2e7e647b2..d9aa23bc4 100644
--- a/winsup/cygwin/cygwin.din
+++ b/winsup/cygwin/cygwin.din
@@ -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
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index c75782752..b600e496d 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -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
diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h
index 73759ddc0..1e0cbf48c 100644
--- a/winsup/cygwin/include/pthread.h
+++ b/winsup/cygwin/include/pthread.h
@@ -194,6 +194,7 @@ void pthread_testcancel (void);
int pthread_suspend (pthread_t);
int pthread_continue (pthread_t);
+int pthread_yield (void);
#ifdef __cplusplus
}
diff --git a/winsup/cygwin/posix.sgml b/winsup/cygwin/posix.sgml
index b085ddf79..9f73b3d59 100644
--- a/winsup/cygwin/posix.sgml
+++ b/winsup/cygwin/posix.sgml
@@ -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)