summaryrefslogtreecommitdiff
path: root/lib/pthread.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-07-15 02:37:44 +0200
committerBruno Haible <bruno@clisp.org>2019-07-15 02:37:44 +0200
commite09ceafdb38f57a50bc88e820c8af1d95b7aae22 (patch)
treebd129f657c2161e499084b4b4f7500f6458ffc7c /lib/pthread.in.h
parent222a7e6cb8b1d514efeca426345dc273e92233df (diff)
downloadgnulib-e09ceafdb38f57a50bc88e820c8af1d95b7aae22.tar.gz
pthread-mutex: New module.
* lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init, pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock, pthread_mutex_unlock): Remove inline definitions. * lib/pthread-mutex.c: New file. * m4/pthread-mutex.m4: New file. * modules/pthread-mutex: New file. * doc/posix-functions/pthread_mutex_init.texi: Mention the new module. * doc/posix-functions/pthread_mutexattr_init.texi: Likewise. * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise. * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise. * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise. * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise. * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise. * doc/posix-functions/pthread_mutex_lock.texi: Likewise. * doc/posix-functions/pthread_mutex_trylock.texi: Likewise. * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise. * doc/posix-functions/pthread_mutex_unlock.texi: Likewise. * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
Diffstat (limited to 'lib/pthread.in.h')
-rw-r--r--lib/pthread.in.h64
1 files changed, 0 insertions, 64 deletions
diff --git a/lib/pthread.in.h b/lib/pthread.in.h
index 88f349d4e5..b3e6b596aa 100644
--- a/lib/pthread.in.h
+++ b/lib/pthread.in.h
@@ -408,70 +408,6 @@ pthread_cond_wait (pthread_cond_t *restrict cond,
return 0;
}
-_GL_PTHREAD_INLINE int
-pthread_mutexattr_destroy (pthread_mutexattr_t *attr)
-{
- return 0;
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutexattr_init (pthread_mutexattr_t *attr)
-{
- return 0;
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutexattr_settype (pthread_mutexattr_t *attr, int attr_type)
-{
- return 0;
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutex_destroy (pthread_mutex_t *mutex)
-{
- /* MUTEX is never seriously used. */
- return 0;
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutex_init (pthread_mutex_t *restrict mutex,
- pthread_mutexattr_t const *restrict attr)
-{
- /* MUTEX is never seriously used. */
- return 0;
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutex_lock (pthread_mutex_t *mutex)
-{
- /* There is only one thread, so it always gets the lock. This
- implementation does not support PTHREAD_MUTEX_ERRORCHECK. */
- return 0;
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutex_trylock (pthread_mutex_t *mutex)
-{
- return pthread_mutex_lock (mutex);
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutex_timedlock (pthread_mutex_t *mutex, const struct timespec *abstime)
-{
- /* There is only one thread, so it always gets the lock. This
- implementation does not support PTHREAD_MUTEX_ERRORCHECK. */
- return 0;
-}
-
-_GL_PTHREAD_INLINE int
-pthread_mutex_unlock (pthread_mutex_t *mutex)
-{
- /* There is only one thread, so it always unlocks successfully.
- This implementation does not support robust mutexes or
- PTHREAD_MUTEX_ERRORCHECK. */
- return 0;
-}
-
# define GNULIB_defined_pthread_functions 1
# endif