Move comment specific to pointer-taking MutexLock variant to its definition. PiperOrigin-RevId: 791367956 Change-Id: I85d1f0962886a5b24651930122fd152b4cb66f30
diff --git a/absl/synchronization/mutex.h b/absl/synchronization/mutex.h index 6c1a546..781135b 100644 --- a/absl/synchronization/mutex.h +++ b/absl/synchronization/mutex.h
@@ -607,10 +607,13 @@ this->mu_.lock(); } + // Calls `mu->lock()` and returns when that call returns. That is, `*mu` is + // guaranteed to be locked when this object is constructed. Requires that + // `mu` be dereferenceable. explicit MutexLock(Mutex* absl_nonnull mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu) : MutexLock(*mu) {} - // Like above, but calls `mu->LockWhen(cond)` instead. That is, in addition to + // Like above, but calls `mu.LockWhen(cond)` instead. That is, in addition to // the above, the condition given by `cond` is also guaranteed to hold when // this object is constructed. explicit MutexLock(Mutex& mu ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY(this),