Destroy this object and deregister the callback if needed.

Synopsis

Declared in <bslstl_stoptoken.h>

~stop_callback();

Description

If *this refers to a stop state and the stored callback is registered with the stop state but has not yet begun execution, deregister the callback from that stop state. Otherwise, if the callback is executing on a thread other than the thread invoking the destructor, the completion of the callback strongly happens before the destructor returns.

Created with MrDocs