summaryrefslogtreecommitdiffstats
path: root/sys/sys/lock.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2006-04-17 20:17:09 +0000
committerjhb <jhb@FreeBSD.org>2006-04-17 20:17:09 +0000
commitc31555262c8167510bd9fa007ed8d87e44874d99 (patch)
treeec5914944092a0e73e714c7e1f3fc25103d52365 /sys/sys/lock.h
parent963387dcfe861faa684e3ad0bed4253e0195077d (diff)
downloadFreeBSD-src-c31555262c8167510bd9fa007ed8d87e44874d99.zip
FreeBSD-src-c31555262c8167510bd9fa007ed8d87e44874d99.tar.gz
Update comments to indicate that locks are held by threads, not processes.
Diffstat (limited to 'sys/sys/lock.h')
-rw-r--r--sys/sys/lock.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/sys/lock.h b/sys/sys/lock.h
index 99a7e5d..b10b54a 100644
--- a/sys/sys/lock.h
+++ b/sys/sys/lock.h
@@ -106,7 +106,7 @@ struct lock_class {
* Lock instances. A lock instance is the data associated with a lock while
* it is held by witness. For example, a lock instance will hold the
* recursion count of a lock. Lock instances are held in lists. Spin locks
- * are held in a per-cpu list while sleep locks are held in per-process list.
+ * are held in a per-cpu list while sleep locks are held in per-thread list.
*/
struct lock_instance {
struct lock_object *li_lock;
@@ -116,9 +116,9 @@ struct lock_instance {
};
/*
- * A simple list type used to build the list of locks held by a process
+ * A simple list type used to build the list of locks held by a thread
* or CPU. We can't simply embed the list in struct lock_object since a
- * lock may be held by more than one process if it is a shared lock. Locks
+ * lock may be held by more than one thread if it is a shared lock. Locks
* are added to the head of the list, so we fill up each list entry from
* "the back" logically. To ease some of the arithmetic, we actually fill
* in each list entry the normal way (childer[0] then children[1], etc.) but
OpenPOWER on IntegriCloud