Bruno Haible <br...@clisp.org> writes: > I would find it useful and systematic if we started to add a > section "Multithreading:" to the module descriptions. Its contents > could be a simple statement like "MT-safe", or a description like > this for iconv_open: > A conversion descriptor can not be used in multiple threads > simultaneously. > or for localcharset: > Depends on global state: The current locale. This function is > unreliable if setlocale() is called in other threads. > > Filling in this information requires a review of the code, looking > at global variables, system calls, and more.
The individual function descriptions in the manual might be a good place to document where the thread-safety of a function departs from that implemented by glibc or specified by POSIX. -- Ben Pfaff http://benpfaff.org