Subject: CVS commit: [nathanw_sa] basesrc/lib/libpthread
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 10/04/2002 03:26:53
Module Name:	basesrc
Committed By:	nathanw
Date:		Fri Oct  4 00:26:53 UTC 2002

Modified Files:
	basesrc/lib/libpthread [nathanw_sa]: pthread_mutex.c

Log Message:
Tweak pthread_mutex_lock(): Move the "slow" code to another function
and only call pthread_self() inside that function.

Don't use pthread_self() to track ownership; just stash the stack
pointer. Translation to thread IDs can be done post-mortem if
necessary (Thanks to Greg Hudson for pointing this out).


To generate a diff of this commit:
cvs rdiff -r1.1.2.11 -r1.1.2.12 basesrc/lib/libpthread/pthread_mutex.c

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