diff options
author | Bruno Haible <bruno@clisp.org> | 2021-03-07 02:21:49 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-03-07 11:01:57 +0100 |
commit | 92052c44910568ef6012584a344edcb736949d2c (patch) | |
tree | f5a7d07f8d710c448b824401a73f5cb2dd7e1177 /doc | |
parent | 212f0b69ab67a4d6230c2ab85e28c2f54b31060c (diff) | |
download | gnulib-92052c44910568ef6012584a344edcb736949d2c.tar.gz |
getusershell: Optimize stdio accesses when possible.
* lib/getusershell.c: Test GNULIB_GETUSERSHELL_SINGLE_THREAD instead of
USE_UNLOCKED_IO.
* modules/getusershell (Depends-on): Add unlocked-io-internal.
* doc/multithread.texi: Document GNULIB_GETUSERSHELL_SINGLE_THREAD.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/multithread.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/multithread.texi b/doc/multithread.texi index 7fe19a7817..a63d3ee0fa 100644 --- a/doc/multithread.texi +++ b/doc/multithread.texi @@ -274,4 +274,8 @@ You may define the C macro @code{GNULIB_WCHAR_SINGLE}, if all the programs in your package are single-threaded and won't change the locale after it has been initialized. This macro optimizes the functions @code{mbrtowc} and @code{wcwidth}. +@item +You may define the C macro @code{GNULIB_GETUSERSHELL_SINGLE_THREAD}, if all the +programs in your package invoke the functions @code{setusershell}, +@code{getusershell}, @code{endusershell} only from a single thread. @end itemize |