[#fsbridge-FileLock-TryLock]
= xref:fsbridge.adoc[fsbridge]::xref:fsbridge/FileLock.adoc[FileLock]::TryLock
:relfileprefix: ../../
:mrdocs:

Attempt to acquire the lock without blocking&period;

== Synopsis

Declared in `&lt;util&sol;fs&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
TryLock();
----

== Return Value

True if the lock was acquired, false otherwise (see GetReason())&period;


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