tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pthread_key_{create,delete} pthread_{g,s}etspecific on NetBSD
On Thu, Nov 15, 2012 at 12:44:05PM -0500, Christos Zoulas wrote:
>
> If you read the comments on pthread_tsd.c, we chose a naive and simple
> implementation of those functions, one that chooses not to invalidate
> values of keys in other threads when pthread_key_delete() is called.
> This breaks chromium, which expects pthread_key_delete() to do cleanup
> in all threads. I put a patch on:
>
> http://www.netbsd.org/~christos/pthread_key.diff
>
> that changes this. Please comment.
Do not call the destructor while holding a mutex.
Joerg
Home |
Main Index |
Thread Index |
Old Index