A patch for linuxthreads

H.J. Lu hjl@lucon.org
Thu Mar 18 07:44:00 GMT 1999


> 
> 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)



More information about the Libc-hacker mailing list