vma-iter: Port to 64-bit Haiku.
[gnulib.git] / modules / threads-h
blob927a057967ad471fe3fd07b68cbe8c1c33479a23
1 Description:
2 An ISO C 11 compatible <threads.h>.
4 Files:
5 lib/threads.in.h
6 lib/windows-thread.h
7 lib/windows-mutex.h
8 lib/windows-recmutex.h
9 lib/windows-timedmutex.h
10 lib/windows-timedrecmutex.h
11 lib/windows-once.h
12 lib/windows-cond.h
13 lib/windows-tls.h
14 lib/windows-initguard.h
15 m4/threads.m4
16 m4/threadlib.m4
17 build-aux/config.rpath
19 Depends-on:
20 include_next
21 snippet/c++defs
22 snippet/_Noreturn
23 snippet/arg-nonnull
24 snippet/warn-on-use
25 time
26 havelib
28 configure.ac-early:
29 gl_ANYTHREADLIB_EARLY
31 configure.ac:
32 AC_REQUIRE([gl_THREADS_H])
34 Makefile.am:
35 BUILT_SOURCES += threads.h
37 # We need the following in order to create <threads.h> when the system
38 # doesn't have one.
39 threads.h: threads.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
40         $(AM_V_GEN)rm -f $@-t $@ && \
41         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
42           sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
43               -e 's|@''HAVE_THREADS_H''@|$(HAVE_THREADS_H)|g' \
44               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
45               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
46               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
47               -e 's|@''NEXT_THREADS_H''@|$(NEXT_THREADS_H)|g' \
48               -e 's/@''GNULIB_CND''@/$(GNULIB_CND)/g' \
49               -e 's/@''GNULIB_MTX''@/$(GNULIB_MTX)/g' \
50               -e 's/@''GNULIB_THRD''@/$(GNULIB_THRD)/g' \
51               -e 's/@''GNULIB_TSS''@/$(GNULIB_TSS)/g' \
52               -e 's|@''HAVE_THREAD_LOCAL''@|$(HAVE_THREAD_LOCAL)|g' \
53               -e 's|@''BROKEN_THRD_START_T''@|$(BROKEN_THRD_START_T)|g' \
54               -e 's|@''REPLACE_THRD_CREATE''@|$(REPLACE_THRD_CREATE)|g' \
55               -e 's|@''REPLACE_THRD_CURRENT''@|$(REPLACE_THRD_CURRENT)|g' \
56               -e 's|@''REPLACE_THRD_DETACH''@|$(REPLACE_THRD_DETACH)|g' \
57               -e 's|@''REPLACE_THRD_EQUAL''@|$(REPLACE_THRD_EQUAL)|g' \
58               -e 's|@''REPLACE_THRD_JOIN''@|$(REPLACE_THRD_JOIN)|g' \
59               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
60               -e '/definition of _Noreturn/r $(_NORETURN_H)' \
61               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
62               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
63               < $(srcdir)/threads.in.h; \
64         } > $@-t && \
65         mv $@-t $@
66 MOSTLYCLEANFILES += threads.h threads.h-t
68 Include:
69 <threads.h>
71 Link:
72 $(LIBTHREADLOCAL) if you use the thread_local macro
74 License:
75 LGPLv2+
77 Maintainer:
78 all