BloombergLP::bslstl::StopState::requestStop

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

Synopsis

Declared in <bslstl_stopstate.h>

bool
requestStop();

Description

If this StopState object has already had a stop requested, return false. Otherwise, atomically mark this StopState object as having had a stop requested, then execute all registered callbacks in an unspecified order, and finally return true.

Return Value

true if this call requested the stop, and false if a stop was already requested