[#std-shared_lock-0b-try_lock_until]
= xref:std.adoc[std]::xref:std/shared_lock-0b.adoc[shared&lowbar;lock&lt;folly::SharedMutexImpl&lt;ReaderPriority, Tag&lowbar;, Atom, Policy&gt;&gt;]::try&lowbar;lock&lowbar;until
:relfileprefix: ../../
:mrdocs:

Tries to acquire the managed mutex in shared mode by a deadline&period;

== Synopsis

Declared in `&lt;folly&sol;SharedMutex&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Clock,
    typename Duration&gt;
bool
try&lowbar;lock&lowbar;until(std::chrono::time&lowbar;point&lt;Clock, Duration&gt; const& deadline);
----

== Return Value

`true` if the lock was acquired before the deadline&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *deadline*
| Absolute time by which the lock must be acquired&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
