Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 08/07/2007 19:04:22
Module Name:	src
Committed By:	ad
Date:		Tue Aug  7 19:04:22 UTC 2007

Modified Files:
	src/include: lwp.h
	src/lib/libc/sys: _lwp_park.2
	src/lib/libpthread: pthread.c pthread_cond.c pthread_int.h

Log Message:
Change the signature of _lwp_park() to accept an lwpid_t and second
hint pointer, but do so in a way that remains compatible with older
pthread libraries. This can be used to wake another thread before the
calling thread goes asleep, saving at least one syscall + involuntary
context switch. This turns out to be a fairly large win on the condvar
benchmarks that I have tried.


To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 src/include/lwp.h
cvs rdiff -r1.4 -r1.5 src/lib/libc/sys/_lwp_park.2
cvs rdiff -r1.71 -r1.72 src/lib/libpthread/pthread.c
cvs rdiff -r1.32 -r1.33 src/lib/libpthread/pthread_cond.c
cvs rdiff -r1.44 -r1.45 src/lib/libpthread/pthread_int.h

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