bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib and threaded execution


From: Ben Pfaff
Subject: Re: gnulib and threaded execution
Date: Thu, 02 Dec 2010 19:19:52 -0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Bruno Haible <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]