Subject: CVS commit: src/lib/libpthread
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 06/16/2003 21:24:48
Module Name:	src
Committed By:	nathanw
Date:		Mon Jun 16 21:24:48 UTC 2003

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

Log Message:
Dodge a potential race condition in pthread__debuglog_printf(). It's
still possible for multiple threads to write into the same space, but
they shouldn't be able to corrupt the write pointer in the process.

Also, check for pointer-lapping a bit more carefully in the wrap
vs. non-wrap case.


To generate a diff of this commit:
cvs rdiff -r1.5 -r1.6 src/lib/libpthread/pthread_debug.c

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