Constructors
Declared in <folly/synchronization/ThreadAnnotations.h>
Deleted copy constructor; the guard is not copyable.
AnnotatedLockGuard(AnnotatedLockGuard const& other) = delete;
» more...
Deleted move constructor; the guard is not movable.
AnnotatedLockGuard(AnnotatedLockGuard&& other) = delete;
» more...
Acquires the given mutex for the lifetime of this guard.
explicit
AnnotatedLockGuard(Mutex& mu);
» more...
| Name | Description |
|---|---|
| mu | The mutex to lock. |