From fc32751b45623f42892231984e01139257014462 Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Thu, 4 Feb 1999 23:20:30 +0000 Subject: [PATCH] Fixed comments that were referring to monitors. --- base/public/nsAutoLock.h | 10 +++++----- xpcom/threads/nsAutoLock.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/base/public/nsAutoLock.h b/base/public/nsAutoLock.h index ded8c16b0021..2c0964ea629e 100644 --- a/base/public/nsAutoLock.h +++ b/base/public/nsAutoLock.h @@ -19,7 +19,7 @@ /* - A stack-based lock object that makes using PRMontior a bit more + A stack-based lock object that makes using PRLock a bit more convenient. It acquires the monitor when constructed, and releases it when it goes out of scope. @@ -39,13 +39,13 @@ } void ThreadSafeMethod(void) { - // we're don't hold the monitor yet... + // we're don't hold the lock yet... nsAutoLock lock(mLock); // ...but now we do. // we even can do wacky stuff like return from arbitrary places w/o - // worrying about forgetting to release the monitor + // worrying about forgetting to release the lock if (some_weird_condition) return; @@ -53,14 +53,14 @@ } void ThreadSafeBlockScope(void) { - // we're not in the monitor here... + // we're not in the lock here... { nsAutoLock lock(mLock); // but we are now, at least until the block scope closes } - // ...now we're not in the monitor anymore + // ...now we're not in the lock anymore } }; diff --git a/xpcom/threads/nsAutoLock.h b/xpcom/threads/nsAutoLock.h index ded8c16b0021..2c0964ea629e 100644 --- a/xpcom/threads/nsAutoLock.h +++ b/xpcom/threads/nsAutoLock.h @@ -19,7 +19,7 @@ /* - A stack-based lock object that makes using PRMontior a bit more + A stack-based lock object that makes using PRLock a bit more convenient. It acquires the monitor when constructed, and releases it when it goes out of scope. @@ -39,13 +39,13 @@ } void ThreadSafeMethod(void) { - // we're don't hold the monitor yet... + // we're don't hold the lock yet... nsAutoLock lock(mLock); // ...but now we do. // we even can do wacky stuff like return from arbitrary places w/o - // worrying about forgetting to release the monitor + // worrying about forgetting to release the lock if (some_weird_condition) return; @@ -53,14 +53,14 @@ } void ThreadSafeBlockScope(void) { - // we're not in the monitor here... + // we're not in the lock here... { nsAutoLock lock(mLock); // but we are now, at least until the block scope closes } - // ...now we're not in the monitor anymore + // ...now we're not in the lock anymore } };