folly::AnnotatedLockGuard::AnnotatedLockGuard

Constructors

Synopses

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...

Parameters

NameDescription
muThe mutex to lock.