Subject: CVS commit: src/lib/libpthread
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 01/22/2003 01:29:23
Module Name:	src
Committed By:	nathanw
Date:		Tue Jan 21 23:29:22 UTC 2003

Modified Files:
	src/lib/libpthread: pthread_specific.c

Log Message:
Don't bother acquiring the tsd_lock and reading the destructor function
if the corresponding TSD entry is empty.

Cuts down lock/unlock pairs for this operation from 256 to the number
of active TSD entries; sicne this is done when every thread exits, it saves
many total lock/unlock pairs.


To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 src/lib/libpthread/pthread_specific.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.