summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-02-22 20:46:10 +0000
committerjhb <jhb@FreeBSD.org>2006-02-22 20:46:10 +0000
commit1462e3bf37331509cfebf973bebbfdf13c264266 (patch)
tree552dde385b1705f1dc185314bbd07a3d88359488 /sys
parentff9c76bccdce7ca4977a4aea65187a8023b391c2 (diff)
downloadFreeBSD-src-1462e3bf37331509cfebf973bebbfdf13c264266.zip
FreeBSD-src-1462e3bf37331509cfebf973bebbfdf13c264266.tar.gz
Fixup some comments. Mutexes's are locked, not entered for several years
now and msleep blocks threads rather than processes.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_synch.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_synch.c b/sys/kern/kern_synch.c
index 1abbc92..f988946 100644
--- a/sys/kern/kern_synch.c
+++ b/sys/kern/kern_synch.c
@@ -101,8 +101,8 @@ sleepinit(void)
}
/*
- * General sleep call. Suspends the current process until a wakeup is
- * performed on the specified identifier. The process will then be made
+ * General sleep call. Suspends the current thread until a wakeup is
+ * performed on the specified identifier. The thread will then be made
* runnable with the specified priority. Sleeps at most timo/hz seconds
* (0 means no timeout). If pri includes PCATCH flag, signals are checked
* before and after sleeping, else signals are not checked. Returns 0 if
@@ -111,9 +111,9 @@ sleepinit(void)
* call should be restarted if possible, and EINTR is returned if the system
* call should be interrupted by the signal (return EINTR).
*
- * The mutex argument is exited before the caller is suspended, and
- * entered before msleep returns. If priority includes the PDROP
- * flag the mutex is not entered before returning.
+ * The mutex argument is unlocked before the caller is suspended, and
+ * re-locked before msleep returns. If priority includes the PDROP
+ * flag the mutex is not re-locked before returning.
*/
int
msleep(ident, mtx, priority, wmesg, timo)
OpenPOWER on IntegriCloud