[#BloombergLP-bslstl-StopState]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::StopState
:relfileprefix: ../../
:mrdocs:

Shared stop state that tracks a stop request and registered callbacks&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;stopstate&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class StopState;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StopState/2constructor-00.adoc[`StopState`]         [.small]#[constructor]#
| Create a `StopState` object that initially has no registered callbacks and on which a stop has not been requested&period;
| xref:BloombergLP/bslstl/StopState/deregister.adoc[`deregister`] 
| Remove `node` from this stop state, or wait if its callback is executing&period;
| xref:BloombergLP/bslstl/StopState/enregister.adoc[`enregister`] 
| Register `node` with this stop state, or invoke it if a stop was already requested&period;
| xref:BloombergLP/bslstl/StopState/requestStop.adoc[`requestStop`] 
| Request a stop on this state and invoke all registered callbacks&period;
| xref:BloombergLP/bslstl/StopState/stopRequested.adoc[`stopRequested`] 
| Return `true` if a stop has been requested on this `StopState` object, and `false` otherwise&period;
|===


== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslstl/StopToken_RefCountedState.adoc[`StopToken&lowbar;RefCountedState`] 
| Component&hyphen;private `StopState` with a `stop&lowbar;source` reference count&period;
|===


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