summaryrefslogtreecommitdiffstats
path: root/lib/libkse
diff options
context:
space:
mode:
authordavidxu <davidxu@FreeBSD.org>2003-10-08 00:30:38 +0000
committerdavidxu <davidxu@FreeBSD.org>2003-10-08 00:30:38 +0000
commit97f8d9d1b585284b65c073a371a9399a11b884b3 (patch)
treed16de865f05af0d87f25681f2079d718c6f23b28 /lib/libkse
parentdebdb208b6c3a05943c5e54f2f065870b6ed99bf (diff)
downloadFreeBSD-src-97f8d9d1b585284b65c073a371a9399a11b884b3.zip
FreeBSD-src-97f8d9d1b585284b65c073a371a9399a11b884b3.tar.gz
Fix some comments for last commit.
Diffstat (limited to 'lib/libkse')
-rw-r--r--lib/libkse/thread/thr_cancel.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libkse/thread/thr_cancel.c b/lib/libkse/thread/thr_cancel.c
index 9d5bccc..3387b9a 100644
--- a/lib/libkse/thread/thr_cancel.c
+++ b/lib/libkse/thread/thr_cancel.c
@@ -24,7 +24,7 @@ _pthread_cancel(pthread_t pthread)
if ((ret = _thr_ref_add(curthread, pthread, /*include dead*/0)) == 0) {
/*
- * Take the scheduling lock while we change the cancel flags.
+ * Take the thread's lock while we change the cancel flags.
*/
THR_THREAD_LOCK(curthread, pthread);
THR_SCHED_LOCK(curthread, pthread);
@@ -118,7 +118,7 @@ _pthread_cancel(pthread_t pthread)
}
/*
- * Release the thread's scheduling lock and remove the
+ * Release the thread's lock and remove the
* reference:
*/
THR_SCHED_UNLOCK(curthread, pthread);
@@ -147,7 +147,7 @@ _pthread_setcancelstate(int state, int *oldstate)
int ret;
int need_exit = 0;
- /* Take the scheduling lock while fiddling with the thread's state: */
+ /* Take the thread's lock while fiddling with the state: */
THR_THREAD_LOCK(curthread, curthread);
ostate = curthread->cancelflags & PTHREAD_CANCEL_DISABLE;
@@ -187,7 +187,7 @@ _pthread_setcanceltype(int type, int *oldtype)
int ret;
int need_exit = 0;
- /* Take the scheduling lock while fiddling with the state: */
+ /* Take the thread's lock while fiddling with the state: */
THR_THREAD_LOCK(curthread, curthread);
otype = curthread->cancelflags & PTHREAD_CANCEL_ASYNCHRONOUS;
@@ -237,7 +237,6 @@ checkcancel(struct pthread *curthread)
static void
testcancel(struct pthread *curthread)
{
- /* Take the scheduling lock while fiddling with the state: */
if (checkcancel(curthread) != 0) {
/* Unlock before exiting: */
OpenPOWER on IntegriCloud