summaryrefslogtreecommitdiff
path: root/modules/thrd
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-06-20 04:26:31 +0200
committerBruno Haible <bruno@clisp.org>2019-06-20 04:46:38 +0200
commit3696a934e60b3c390bc217bf3273e0c5399e5fd4 (patch)
tree6e7379005ec24c4553403f834e38bcd0a3b1a729 /modules/thrd
parentbf6dd504cc2fcd8481ad5787999b845a3c00f54d (diff)
downloadgnulib-3696a934e60b3c390bc217bf3273e0c5399e5fd4.tar.gz
thrd: New module.
* lib/thrd.c: New file. * m4/thrd.m4: New file. * modules/thrd: New file. * doc/posix-functions/thrd_current.texi: Mention the new module. * doc/posix-functions/thrd_detach.texi: Likewise. * doc/posix-functions/thrd_equal.texi: Likewise. * doc/posix-functions/thrd_exit.texi: Likewise. * doc/posix-functions/thrd_sleep.texi: Likewise. * doc/posix-functions/thrd_yield.texi: Likewise. * doc/posix-functions/thrd_create.texi: Mention the new module and the AIX bug. * doc/posix-functions/thrd_join.texi: Mention the new module and the AIX and Solaris bugs.
Diffstat (limited to 'modules/thrd')
-rw-r--r--modules/thrd33
1 files changed, 33 insertions, 0 deletions
diff --git a/modules/thrd b/modules/thrd
new file mode 100644
index 0000000000..3fd606305d
--- /dev/null
+++ b/modules/thrd
@@ -0,0 +1,33 @@
+Description:
+ISO C 11 thread functions.
+
+Files:
+lib/thrd.c
+m4/thrd.m4
+
+Depends-on:
+threads-h
+windows-thread
+nanosleep
+
+configure.ac:
+AC_REQUIRE([gl_THREADS_H])
+gl_FUNC_THRD_JOIN
+if test $HAVE_THREADS_H = 0 || test $REPLACE_THRD_CREATE = 1 || test $REPLACE_THRD_JOIN = 1; then
+ AC_LIBOBJ([thrd])
+fi
+gl_THREADS_MODULE_INDICATOR([thrd])
+
+Makefile.am:
+
+Include:
+<threads.h>
+
+Link:
+$(LTLIBSTDTHREAD) when linking with libtool, $(LIBSTDTHREAD) otherwise
+
+License:
+LGPLv2+
+
+Maintainer:
+all