mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
maint: avoid sigaction lock overhead
* configure.ac (GNULIB_SIGACTION_SINGLE_THREAD): Define to avoid unnecessary locking in Gnulib sigaction. See: https://lists.gnu.org/r/bug-gnulib/2026-04/msg00008.html
This commit is contained in:
1 parent
8a6cb56817
commit
3fb7dc8e28
1 file changed
+3
-1
+3
-1
@@ -64,11 +64,13 @@ gl_INIT
|
||||
coreutils_MACROS
|
||||
|
||||
# These are safe, since 'sort', coreutils's only multithreaded app,
|
||||
# does not use the relevant modules.
|
||||
# does not use the relevant modules, or calls their code from one thread.
|
||||
AC_DEFINE([GNULIB_EXCLUDE_SINGLE_THREAD], [1],
|
||||
[Define to 1 if apps call 'exclude' functions from a single thread.])
|
||||
AC_DEFINE([GNULIB_REGEX_SINGLE_THREAD], [1],
|
||||
[Define to 1 if apps call 'regex' functions from a single thread.])
|
||||
AC_DEFINE([GNULIB_SIGACTION_SINGLE_THREAD], [1],
|
||||
[Define to 1 if programs call 'sigaction' functions from a single thread.])
|
||||
# Although 'sort' is multithreaded and can use these functions,
|
||||
# it uses them only from the main thread.
|
||||
AC_DEFINE([GNULIB_MBRTOWC_SINGLE_THREAD], [1],
|
||||
|
||||
Reference in new issue
Block a user