* lib/pthread.in.h: Remove declarations for extern inline functions.
* lib/pthread.c: Remove file.
* modules/pthread (Files): Remove it.
(Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
(configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
* m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
GNULIB_PTHREAD.
* modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
+2019-07-14 Bruno Haible <bruno@clisp.org>
+
+ pthread: Turn into a convenience module.
+ * lib/pthread.in.h: Remove declarations for extern inline functions.
+ * lib/pthread.c: Remove file.
+ * modules/pthread (Files): Remove it.
+ (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
+ pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
+ (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
+ * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
+ GNULIB_PTHREAD.
+ * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
+
2019-07-14 Bruno Haible <bruno@clisp.org>
pthread-spin: New module.
+++ /dev/null
-#include <config.h>
-#define _GL_PTHREAD_INLINE _GL_EXTERN_INLINE
-#include "pthread.h"
-typedef int dummy;
/* The definition of _GL_WARN_ON_USE is copied here. */
-#ifndef _GL_INLINE_HEADER_BEGIN
- #error "Please include config.h first."
-#endif
-_GL_INLINE_HEADER_BEGIN
-#ifndef _GL_PTHREAD_INLINE
-# define _GL_PTHREAD_INLINE _GL_INLINE
-#endif
-
/* =========== Thread types and macros =========== */
#if @GNULIB_PTHREAD_THREAD@ && (defined _WIN32 && ! defined __CYGWIN__) && USE_WINDOWS_THREADS
#endif
-_GL_INLINE_HEADER_END
-
#endif /* _@GUARD_PREFIX@_PTHREAD_H_ */
#endif /* _@GUARD_PREFIX@_PTHREAD_H_ */
#endif
AC_DEFUN([gl_PTHREAD_H_DEFAULTS],
[
- GNULIB_PTHREAD=0; AC_SUBST([GNULIB_PTHREAD])
GNULIB_PTHREAD_THREAD=0; AC_SUBST([GNULIB_PTHREAD_THREAD])
GNULIB_PTHREAD_ONCE=0; AC_SUBST([GNULIB_PTHREAD_ONCE])
GNULIB_PTHREAD_MUTEX=0; AC_SUBST([GNULIB_PTHREAD_MUTEX])
Implement the most essential subset of the pthreads library.
Files:
-lib/pthread.c
Depends-on:
pthread-h
+pthread-thread
+pthread-once
+pthread-mutex
+pthread-rwlock
+pthread-cond
+pthread-tss
+pthread-spin
configure.ac:
-if test $HAVE_PTHREAD_H = 0 || test $HAVE_PTHREAD_T = 0 || test $HAVE_PTHREAD_SPINLOCK_T = 0; then
- AC_LIBOBJ([pthread])
-fi
-gl_MODULE_INDICATOR([pthread])
Makefile.am:
-e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
-e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
-e 's|@''NEXT_PTHREAD_H''@|$(NEXT_PTHREAD_H)|g' \
- -e 's/@''GNULIB_PTHREAD''@/$(GNULIB_PTHREAD)/g' \
-e 's/@''GNULIB_PTHREAD_THREAD''@/$(GNULIB_PTHREAD_THREAD)/g' \
-e 's/@''GNULIB_PTHREAD_ONCE''@/$(GNULIB_PTHREAD_ONCE)/g' \
-e 's/@''GNULIB_PTHREAD_MUTEX''@/$(GNULIB_PTHREAD_MUTEX)/g' \