Re: [bug-gnulib] Re: adding once-only initialization to lock module

2005-07-26 Thread Bruno Haible
Albert Chin wrote: > I'd review this: > http://mailman.mit.edu/pipermail/kerberos/2005-May/007723.html > > It details how the weak referenced stubs in libc on some systems work > with pthread_once(). Thanks for the info. Indeed, on Solaris and HP-UX 11, the libc and libpthread both contain most

Re: adding once-only initialization to lock module

2005-07-19 Thread Albert Chin
On Mon, Jul 18, 2005 at 09:54:36PM +0200, Bruno Haible wrote: > Libraries that need to protect shared datastructures with locks also often > need once-only initializations. And conversely, all programs that need > thread-safe once-only initialization also need locking. > > So I've added support fo

adding once-only initialization to lock module

2005-07-18 Thread Bruno Haible
Hi, Libraries that need to protect shared datastructures with locks also often need once-only initializations. And conversely, all programs that need thread-safe once-only initialization also need locking. So I've added support for once-only execution (à la pthread_once) to lock.h and lock.c. Br