We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a91068 commit 81dff3bCopy full SHA for 81dff3b
1 file changed
absl/synchronization/mutex.h
@@ -607,10 +607,13 @@ class ABSL_SCOPED_LOCKABLE MutexLock {
607
this->mu_.lock();
608
}
609
610
+ // Calls `mu->lock()` and returns when that call returns. That is, `*mu` is
611
+ // guaranteed to be locked when this object is constructed. Requires that
612
+ // `mu` be dereferenceable.
613
explicit MutexLock(Mutex* absl_nonnull mu) ABSL_EXCLUSIVE_LOCK_FUNCTION(mu)
614
: MutexLock(*mu) {}
615
- // Like above, but calls `mu->LockWhen(cond)` instead. That is, in addition to
616
+ // Like above, but calls `mu.LockWhen(cond)` instead. That is, in addition to
617
// the above, the condition given by `cond` is also guaranteed to hold when
618
// this object is constructed.
619
explicit MutexLock(Mutex& mu ABSL_INTERNAL_ATTRIBUTE_CAPTURED_BY(this),
0 commit comments