diff options
author | Bruno Haible <bruno@clisp.org> | 2019-06-20 04:17:30 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-06-20 04:25:34 +0200 |
commit | 80d24481060742c00cfe83a6a772db3856d1e7cb (patch) | |
tree | 4e28bea4d7bdaa4431b20db143a803b620ba7213 /modules/threads-h | |
parent | 0894f96f89e0e44bdf2921e6cd51fca429bf9802 (diff) | |
download | gnulib-80d24481060742c00cfe83a6a772db3856d1e7cb.tar.gz |
threads-h: New module.
* lib/threads.in.h: New file.
* m4/threads.m4: New file.
* m4/yield.m4 (gl_YIELD): Update comment.
* modules/threads-h: New file.
* modules/yields (configure.ac): Use AC_REQUIRE.
* doc/posix-headers/threads.texi: Mention the new module and the AIX
bugs.
Diffstat (limited to 'modules/threads-h')
-rw-r--r-- | modules/threads-h | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/modules/threads-h b/modules/threads-h new file mode 100644 index 0000000000..238955c6b5 --- /dev/null +++ b/modules/threads-h @@ -0,0 +1,73 @@ +Description: +An ISO C 11 compatible <threads.h>. + +Files: +lib/threads.in.h +lib/windows-thread.h +lib/windows-mutex.h +lib/windows-recmutex.h +lib/windows-timedmutex.h +lib/windows-timedrecmutex.h +lib/windows-once.h +lib/windows-cond.h +lib/windows-tls.h +lib/windows-spinlock.h +m4/threads.m4 +m4/threadlib.m4 +m4/yield.m4 +build-aux/config.rpath + +Depends-on: +include_next +snippet/c++defs +snippet/_Noreturn +snippet/arg-nonnull +snippet/warn-on-use +time +havelib + +configure.ac-early: +gl_THREADLIB_EARLY + +configure.ac: +AC_REQUIRE([gl_THREADS_H]) + +Makefile.am: +BUILT_SOURCES += threads.h + +# We need the following in order to create <threads.h> when the system +# doesn't have one. +threads.h: threads.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H) + $(AM_V_GEN)rm -f $@-t $@ && \ + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \ + sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \ + -e 's|@''HAVE_THREADS_H''@|$(HAVE_THREADS_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ + -e 's|@''NEXT_THREADS_H''@|$(NEXT_THREADS_H)|g' \ + -e 's/@''GNULIB_CND''@/$(GNULIB_CND)/g' \ + -e 's/@''GNULIB_MTX''@/$(GNULIB_MTX)/g' \ + -e 's/@''GNULIB_THRD''@/$(GNULIB_THRD)/g' \ + -e 's/@''GNULIB_TSS''@/$(GNULIB_TSS)/g' \ + -e 's|@''BROKEN_THRD_START_T''@|$(BROKEN_THRD_START_T)|g' \ + -e 's|@''REPLACE_THRD_CREATE''@|$(REPLACE_THRD_CREATE)|g' \ + -e 's|@''REPLACE_THRD_CURRENT''@|$(REPLACE_THRD_CURRENT)|g' \ + -e 's|@''REPLACE_THRD_DETACH''@|$(REPLACE_THRD_DETACH)|g' \ + -e 's|@''REPLACE_THRD_EQUAL''@|$(REPLACE_THRD_EQUAL)|g' \ + -e 's|@''REPLACE_THRD_JOIN''@|$(REPLACE_THRD_JOIN)|g' \ + < $(srcdir)/threads.in.h; \ + } > $@-t && \ + mv $@-t $@ +MOSTLYCLEANFILES += threads.h threads.h-t + +Include: +<threads.h> + +Link: + +License: +LGPLv2+ + +Maintainer: +all |