]> Savannah Git Hosting - gnulib.git/commit
once: New module, extracted from lock.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 21:55:37 +0000 (23:55 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 4 Aug 2024 21:55:37 +0000 (23:55 +0200)
commit1d1374e3ed574bcb4ff2e1d4bc3b9ede35db8e45
tree6bc30aa7c27bff8b99186e653b034de702743b81
parentda8e6e1317877008ee7be56c3d971eb2343ef415
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'.
ChangeLog
doc/multithread.texi
lib/glthread/lock.c
lib/glthread/lock.h
lib/glthread/once.c [new file with mode: 0644]
lib/glthread/once.h [new file with mode: 0644]
modules/lock
modules/once [new file with mode: 0644]
tests/test-once.c