diff options
Diffstat (limited to 'lib/pthread.in.h')
-rw-r--r-- | lib/pthread.in.h | 64 |
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 |