diff options
author | Bruno Haible <bruno@clisp.org> | 2023-03-25 20:54:29 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-03-25 20:58:44 +0100 |
commit | 53370c23642eb6256dafd7b6abca8cc93581b7c2 (patch) | |
tree | e8fedc5095c2d787898557a2e699a52e0d812b77 /modules/threads-h | |
parent | eb8da36e0b3a667444707fb7d0182e54bb2130d0 (diff) | |
download | gnulib-53370c23642eb6256dafd7b6abca8cc93581b7c2.tar.gz |
call_once: New module, separate from mtx.
* lib/threads.in.h (call_once): Declare as part of module 'call_once',
not module 'mtx'.
* lib/call_once.c: New file, extracted from lib/mtx.c.
* lib/mtx.c (call_once): Remove function.
* m4/threads_h.m4 (gl_THREADS_H_REQUIRE_DEFAULTS): Inititalize
GNULIB_CALL_ONCE.
* modules/threads-h (Makefile.am): Substitute GNULIB_CALL_ONCE.
* modules/call_once: New file, based on modules/mtx.
* modules/threads (Depends-on): Add call_once.
* tests/test-threads-c++.cc: Update accordingly.
* modules/call_once-tests: New file, based on modules/mtx-tests.
* modules/mtx-tests (Files): Remove tests/test-call_once.c.
(Makefile.am): Don't compile test-call_once.
* doc/posix-functions/call_once.texi: Document that the relevant module
is now 'call_once'.
* NEWS: Mention the change.
Diffstat (limited to 'modules/threads-h')
-rw-r--r-- | modules/threads-h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/threads-h b/modules/threads-h index 50a60dfdab..1a2b83a354 100644 --- a/modules/threads-h +++ b/modules/threads-h @@ -50,6 +50,7 @@ threads.h: threads.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(_NORETURN_H -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ -e 's|@''NEXT_AS_FIRST_DIRECTIVE_THREADS_H''@|$(NEXT_AS_FIRST_DIRECTIVE_THREADS_H)|g' \ -e 's|@''NEXT_THREADS_H''@|$(NEXT_THREADS_H)|g' \ + -e 's/@''GNULIB_CALL_ONCE''@/$(GNULIB_CALL_ONCE)/g' \ -e 's/@''GNULIB_CND''@/$(GNULIB_CND)/g' \ -e 's/@''GNULIB_MTX''@/$(GNULIB_MTX)/g' \ -e 's/@''GNULIB_THRD''@/$(GNULIB_THRD)/g' \ |