Shared stop state that tracks a stop request and registered callbacks.

Synopsis

Declared in <bslstl_stopstate.h>

class StopState;

Member Functions

Name

Description

StopState [constructor]

Create a StopState object that initially has no registered callbacks and on which a stop has not been requested.

deregister

Remove node from this stop state, or wait if its callback is executing.

enregister

Register node with this stop state, or invoke it if a stop was already requested.

requestStop

Request a stop on this state and invoke all registered callbacks.

stopRequested

Return true if a stop has been requested on this StopState object, and false otherwise.

Derived Classes

Name

Description

StopToken_RefCountedState

Component‐private StopState with a stop_source reference count.

Created with MrDocs