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

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

Log Message:
In pthread__resolve_locks(), change the conditions for removing a normal
thread from the continuation chain: Not only must it have released all
spinlocks, but it must have signaled completion by finishing pthread__switch
or by having stored into pt_switchto.

Together with the previous pthread_switch.S changes, this fixes a couple of
crasehes caused by race conditions in the examination and use of pt_next,
and by switching to empty pt_switchtouc's.


To generate a diff of this commit:
cvs rdiff -r1.9 -r1.10 src/lib/libpthread/pthread_sa.c

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