This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: A patch for linuxthreads
- To: mrs@wrs.com (Mike Stump)
- Subject: Re: A patch for linuxthreads
- From: hjl@lucon.org (H.J. Lu)
- Date: Thu, 18 Mar 1999 07:44:01 -0800 (PST)
- Cc: libc-hacker@cygnus.com
>
> Forgive my possible ignorance, but if on an future SMP system, you can
> have two threads running on different CPUs at the same time in a
> shared memory system, and there is no `other' locking, the above seems
> like it needs a lock around it.
>
Thanks for your concern. The function, pthread_key_delete, is protected
by
pthread_mutex_lock(&pthread_keys_mutex);
....
pthread_mutex_unlock(&pthread_keys_mutex);
Have you tried glibc 2.1? It is great.
--
H.J. Lu (hjl@gnu.org)