Branch
Hash :
1d1374e3
Author :
Date :
2024-08-04T23:55:37
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'.
Description:
Locking in multithreaded situations.
Files:
lib/glthread/lock.h
lib/glthread/lock.c
m4/lock.m4
m4/pthread_rwlock_rdlock.m4
Depends-on:
extensions
threadlib
once
windows-mutex [test $gl_threads_api = windows]
windows-rwlock [test $gl_threads_api = windows]
windows-recmutex [test $gl_threads_api = windows]
configure.ac:
gl_LOCK
gl_MODULE_INDICATOR([lock])
Makefile.am:
lib_SOURCES += glthread/lock.h glthread/lock.c
Include:
"glthread/lock.h"
Link:
$(LIBTHREAD)
License:
LGPLv2+
Maintainer:
all