[#BloombergLP-bslmt-OnceGuard-isInProgress]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/OnceGuard.adoc[OnceGuard]::isInProgress
:relfileprefix: ../../../
:mrdocs:

Return `true` if this object is in the &quot;in&hyphen;progress&quot; state&period;

== Synopsis

Declared in `&lt;bslmt&lowbar;once&period;h&gt;`

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

== Description

The object is in&hyphen;progress if `enter` has been called and returned `true` and neither `leave` nor `cancel` have been called&period; The one&hyphen;time code controlled by this object should only be executing if this object is in the &quot;in&hyphen;progress&quot; state&period;

== Return Value

`true` if this object is in the &quot;in&hyphen;progress&quot; state, and `false` otherwise


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