summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_kern.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>1999-12-17 00:57:54 +0000
committerdeischen <deischen@FreeBSD.org>1999-12-17 00:57:54 +0000
commit8456ca731197cd424e1d5a70363f568d2424d38b (patch)
tree6af52cbde8a6b3b4543c13ca8f8c2a579020ecd5 /lib/libpthread/thread/thr_kern.c
parent17ee572a14054fb3c892f9dc5ee491e75bc8f3f5 (diff)
downloadFreeBSD-src-8456ca731197cd424e1d5a70363f568d2424d38b.zip
FreeBSD-src-8456ca731197cd424e1d5a70363f568d2424d38b.tar.gz
Fix problems with cancellation while in critical regions.
o Cancellation flags were not getting properly set/cleared. o Loops waiting for internal locks were not being exited correctly by a cancelled thread. o Minor spelling (cancelation -> cancellation) and formatting corrections (missing tab). Found by: tg Reviewed by: jasone
Diffstat (limited to 'lib/libpthread/thread/thr_kern.c')
-rw-r--r--lib/libpthread/thread/thr_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/thread/thr_kern.c b/lib/libpthread/thread/thr_kern.c
index f69cb41..b3fbc3a 100644
--- a/lib/libpthread/thread/thr_kern.c
+++ b/lib/libpthread/thread/thr_kern.c
@@ -111,7 +111,7 @@ __asm__("fnsave %0": :"m"(*fdata));
if (((_thread_run->cancelflags & PTHREAD_AT_CANCEL_POINT) == 0) &&
((_thread_run->cancelflags & PTHREAD_CANCEL_ASYNCHRONOUS) != 0)) {
/*
- * Cancelations override signals.
+ * Cancellations override signals.
*
* Stick a cancellation point at the start of
* each async-cancellable thread's resumption.
OpenPOWER on IntegriCloud