Subject: CVS commit: src/lib/libpthread
To: None <source-changes@NetBSD.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 07/21/2003 22:24:10
Module Name: src
Committed By: nathanw
Date: Mon Jul 21 22:24:10 UTC 2003
Modified Files:
src/lib/libpthread: pthread.c pthread_sa.c pthread_sig.c
Log Message:
Lock accesses to pt_flags and pt_cancel.
When disabling cancellation, clear the pt_cancel flag if it was set
and note the cancellation request with PT_FLAG_CS_PENDING. This avoids
a problem where a cancellation request entered but not acted upon before
pthread_setcanclstate(PTHREAD_CANCEL_DISABLE) is called would still be
aceted upon before cancellation was re-enabled.
To generate a diff of this commit:
cvs rdiff -r1.27 -r1.28 src/lib/libpthread/pthread.c
cvs rdiff -r1.12 -r1.13 src/lib/libpthread/pthread_sa.c
cvs rdiff -r1.15 -r1.16 src/lib/libpthread/pthread_sig.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.