From mboxrd@z Thu Jan 1 00:00:00 1970 From: hjl@lucon.org (H.J. Lu) To: mrs@wrs.com (Mike Stump) Cc: libc-hacker@cygnus.com Subject: Re: A patch for linuxthreads Date: Thu, 18 Mar 1999 07:44:00 -0000 Message-id: References: <199903172144.NAA17458@kankakee.wrs.com> X-SW-Source: 1999-03/msg00026.html > > 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)