summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirk.erickson%sun.com <devnull@localhost>2002-02-11 20:14:05 +0000
committerkirk.erickson%sun.com <devnull@localhost>2002-02-11 20:14:05 +0000
commitcf317b788c6ada75617763a99cb66158777fac77 (patch)
treecaeb706db02746b8d0269e870942d32c7fd8335a
parent5b4f0678d52b744a40b53699751b70fbe8fb270b (diff)
downloadnss-hg-cf317b788c6ada75617763a99cb66158777fac77.tar.gz
Commented SlotStr with information what what locks protect what.
-rw-r--r--security/nss/lib/softoken/pkcs11i.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/security/nss/lib/softoken/pkcs11i.h b/security/nss/lib/softoken/pkcs11i.h
index a42a41794..2041150f9 100644
--- a/security/nss/lib/softoken/pkcs11i.h
+++ b/security/nss/lib/softoken/pkcs11i.h
@@ -341,6 +341,13 @@ struct PK11SessionStr {
/*
* slots (have sessions and objects)
+ *
+ * The array of sessionLock's protect the session hash table (head[])
+ * as well as the reference count of session objects in that bucket
+ * (head[]->refCount), objectLock protects all elements of the token
+ * object hash table (tokObjects[]), and slotLock protects the
+ * remaining protected elements: password, isLoggedIn, ssoLoggedIn,
+ * sessionIDCount, sessionCount, and rwSessionCount.
*/
struct PK11SlotStr {
CK_SLOT_ID slotID;