Constructs a lock that manages a mutex without acquiring it.

Synopsis

Declared in <folly/SharedMutex.h>

shared_lock(
    mutex_type& mutex,
    std::defer_lock_t unused) noexcept;

Parameters

Name

Description

mutex

Mutex to associate with this lock.

unused

Tag selecting deferred locking.

Created with MrDocs