Re: pthread_key_delete doesn't reset values

2011-07-03 Thread Philip Guenther
On Sat, Jul 2, 2011 at 5:20 PM, Federico Schwindt wrote: > you should only do that if key is valid, not always. also > specific_data might be NULL. > i don't think this is correct. Hmm, yeah. How about: Index: uthread/uthread_spec.c

Re: pthread_key_delete doesn't reset values

2011-07-02 Thread Federico Schwindt
you should only do that if key is valid, not always. also specific_data might be NULL. i don't think this is correct. On Sat, Jul 2, 2011 at 4:53 PM, Mike Belopuhov wrote: > On Sat, Jul 02, 2011 at 11:04 -0400, Ted Unangst wrote: >> On Mon, Jun 27, 2011, Henry Precheur wrote: >> > According to pt

Re: pthread_key_delete doesn't reset values

2011-07-02 Thread Mike Belopuhov
On Sat, Jul 02, 2011 at 11:04 -0400, Ted Unangst wrote: > On Mon, Jun 27, 2011, Henry Precheur wrote: > > According to pthread_key_create(3): Upon key creation, the value NULL is > > associated with the new key in all active threads. > > > > > > When pthread_key_create reuse an existing key, the

Re: pthread_key_delete doesn't reset values

2011-07-02 Thread Ted Unangst
On Mon, Jun 27, 2011, Henry Precheur wrote: > According to pthread_key_create(3): Upon key creation, the value NULL is > associated with the new key in all active threads. > > > When pthread_key_create reuse an existing key, the old value is still > here, which can create problems. The following