1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-09-14 00:21:53 +03:00
Files
gnulib/modules/once
Bruno Haible 1d1374e3ed once: New module, extracted from lock.
* lib/glthread/once.h: New file, extracted from lib/glthread/lock.h.
* lib/glthread/once.c: New file, extracted from lib/glthread/lock.c.
* lib/glthread/lock.h: Include glthread/once.h. Don't include
windows-once.h.
(c11_threads_in_use, glthread_in_use, gl_once_t, gl_once_define,
glthread_once): Remove.
(glthread_once_singlethreaded, glthread_once_multithreaded): Remove
declarations.
* lib/glthread/lock.c (fresh_once, glthread_once_singlethreaded,
glthread_once_multithreaded): Remove.
* modules/once: New file.
* modules/lock (Depends-on): Add once. Remove pthread-once,
windows-once.
* tests/test-once.c: Include glthread/once.h instead of glthread/lock.h.
* doc/multithread.texi (Gnulib multithreading): Mention the module
'once'.
2024-08-04 23:55:37 +02:00

32 lines
425 B
Plaintext

Description:
Once-only initialization in multithreaded situations.
Files:
lib/glthread/once.h
lib/glthread/once.c
m4/once.m4
Depends-on:
extensions
threadlib
pthread-once [test $gl_threads_api = posix]
windows-once [test $gl_threads_api = windows]
configure.ac:
gl_ONCE
Makefile.am:
lib_SOURCES += glthread/once.h glthread/once.c
Include:
"glthread/once.h"
Link:
$(LIBTHREAD)
License:
LGPLv2+
Maintainer:
all