summaryrefslogtreecommitdiff
path: root/src/mongo/util/concurrency
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/util/concurrency')
-rw-r--r--src/mongo/util/concurrency/with_lock.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/util/concurrency/with_lock.h b/src/mongo/util/concurrency/with_lock.h
index 5f6cf3a15f1..e1607e361cf 100644
--- a/src/mongo/util/concurrency/with_lock.h
+++ b/src/mongo/util/concurrency/with_lock.h
@@ -91,7 +91,8 @@ struct WithLock {
WithLock(stdx::unique_lock<Mutex>&&) = delete;
/*
- * Pass the result of withoutLock() when a lock is not really needed, such as in a constructor.
+ * Produces a WithLock without benefit of any actual lock, for use in cases where a lock is not
+ * really needed, such as in many (but not all!) constructors.
*/
static WithLock withoutLock() noexcept {
return {};