summaryrefslogtreecommitdiff
path: root/libpthread/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 01:06:13 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2010-08-01 01:06:13 +0200
commit8a42f9a3ff374eab8dec61b1d4eb8567a2a91ade (patch)
treeef4b3d43559f4f6455f70ef04fc853a05d3ff823 /libpthread/include
parent68567b88ee8f9e395e0c1f0a565affe8a1d4d68b (diff)
parent90dd2d73435a8e1bbcccf5ed99a91b2c438557f4 (diff)
Merge branch 'libpthread' into libpthread-moved
Diffstat (limited to 'libpthread/include')
-rw-r--r--libpthread/include/pthread/pthread.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/libpthread/include/pthread/pthread.h b/libpthread/include/pthread/pthread.h
index dedb09d4..e6b92495 100644
--- a/libpthread/include/pthread/pthread.h
+++ b/libpthread/include/pthread/pthread.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2002, 2005, 2006, 2007, 2008, 2009
+/* Copyright (C) 2000, 2002, 2005, 2006, 2007, 2008, 2009, 2010
Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -313,6 +313,8 @@ extern int pthread_mutexattr_settype(pthread_mutexattr_t *attr,
/* Static initializer for recursive mutexes. */
#ifdef __USE_GNU
+# define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
+ __PTHREAD_ERRORCHECK_MUTEX_INITIALIZER
# define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
__PTHREAD_RECURSIVE_MUTEX_INITIALIZER
#endif
@@ -732,6 +734,14 @@ extern int pthread_setschedparam (pthread_t thread, int policy,
/* Set thread THREAD's scheduling priority. */
extern int pthread_setschedprio (pthread_t thread, int prio);
+
+#ifdef __USE_GNU
+/* Yield the processor to another thread or process.
+ This function is similar to the POSIX `sched_yield' function but
+ might be differently implemented in the case of a m-on-n thread
+ implementation. */
+extern int pthread_yield (void);
+#endif
/* Kernel-specific interfaces. */