std::shared_timed_mutex::lock_shared

Acquires shared ownership of the mutex. If another thread is holding the mutex in exclusive ownership, a call to lock_shared will block execution until shared ownership can be acquired.

# Declarations

void lock_shared();

(since C++14)

# Return value

(none)

# Notes

lock_shared() is usually not called directly: std::shared_lock is used to manage shared locking.

# Example

This section is incompleteReason: no example

# See also