Subject: CVS commit: src/lib/libpthread
To: None <source-changes@NetBSD.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 11/21/2003 22:08:00
Module Name: src
Committed By: nathanw
Date: Fri Nov 21 22:08:00 UTC 2003
Modified Files:
src/lib/libpthread: pthread_cond.c
Log Message:
Prevent ptc_mutex from remaining set if a CV sleep is woken by
cancellation:
* Arrange to not set ptc_mutex until after the pre-sleep cancellation
test.
* In the post-sleep cancellation test, check if there are no more
sleepers and clear ptc_mutex if so.
While here, sprinkle some __predict_false() around the cancellation
tests.
To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 src/lib/libpthread/pthread_cond.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.