Re: [bug-gnulib] Re: more support for multithread-safe libraries

2005-08-16 Thread Bruno Haible
Paul Eggert wrote: > This sort of macro will cause warnings with GCC and other compilers > if you use it in a context like this: > >if (foo) > gl_tls_key_init (name, destructor); > > because the compiler will warn about possible if-then-else nesting > problems. The usual do { ... } while

Re: more support for multithread-safe libraries

2005-08-15 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > Some multithread-safe libraries need not only locking, but also per-thread > storage. I propose to add this module that provides TLS. That sounds like a nice thing to add. Thanks. One quibble: > # define gl_tls_key_init(NAME, DESTRUCTOR) \ > if (p

more support for multithread-safe libraries

2005-08-01 Thread Bruno Haible
Hi, Some multithread-safe libraries need not only locking, but also per-thread storage. I propose to add this module that provides TLS. Quite simple compared to the 'lock' module. Bruno === modules/tls == Description: Thread-local stora