mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
* lib/signal.in.h (WIN_PTHREADS_SIGNAL_H): New macro. * lib/sigprocmask.c: Include windows-spin.h. (thread_local): New macro. (blocked_set, pending_array): Mark as thread-local. (blocked_handler): Remove function. (struct override): New type. (overrides, overrides_lock): New variables. (override_handler): New function. (pthread_sigmask): New function, borrowing from the previous sigprocmask definition. (sigprocmask): Now a wrapper around pthread_sigmask. (rpl_signal): Use the overrides_lock to make it multithread-safe. (_gl_raise_SIGPIPE): Add comments. * modules/sigprocmask (Depends-on): Add windows-spin. * lib/pthread_sigmask.c: Revert last change. On native Windows, don't define pthread_sigmask here. * modules/pthread_sigmask (Depends-on): Remove lock. * NEWS: Remove the last entry.
39 lines
799 B
Plaintext
39 lines
799 B
Plaintext
Description:
|
|
POSIX compatible signal blocking for threads.
|
|
|
|
Files:
|
|
lib/pthread_sigmask.c
|
|
m4/pthread_sigmask.m4
|
|
|
|
Depends-on:
|
|
signal-h
|
|
threadlib
|
|
sigprocmask [test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1]
|
|
memeq [test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1]
|
|
|
|
configure.ac:
|
|
gl_FUNC_PTHREAD_SIGMASK
|
|
gl_CONDITIONAL([GL_COND_OBJ_PTHREAD_SIGMASK],
|
|
[test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1])
|
|
AM_COND_IF([GL_COND_OBJ_PTHREAD_SIGMASK], [
|
|
gl_PREREQ_PTHREAD_SIGMASK
|
|
])
|
|
gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
|
|
|
|
Makefile.am:
|
|
if GL_COND_OBJ_PTHREAD_SIGMASK
|
|
lib_SOURCES += pthread_sigmask.c
|
|
endif
|
|
|
|
Include:
|
|
<signal.h>
|
|
|
|
Link:
|
|
$(PTHREAD_SIGMASK_LIB)
|
|
|
|
License:
|
|
LGPLv2+
|
|
|
|
Maintainer:
|
|
Paul Eggert, Jim Meyering
|