Mechanism for observing cancellation requests on a stop state.
Synopsis
Declared in <bslstl_stoptoken.h>
class stop_token;
Description
This class is a mechanism for observing cancellation requests. An object of this class either has (possibly shared) ownership of a stop state and can be used to observe whether a cancellation request has been made on that stop state, or does not own a stop state. A stop_token cannot be used to make a cancellation request.
Type Aliases
Name |
Description |
Alias for |
Member Functions
Name |
Description |
|
Constructors |
|
Destroy this object. |
Assignment operators |
|
Return whether a stop is still possible on the referred stop state. |
|
Return whether a stop has been requested on the referred stop state. |
|
Exchange the stop states referred to by |
Friends
Name |
Description |
Exchange the stop states referred to by |
|
Return whether |
|
Callback invoked when a stop is requested on an associated stop state. |
|
Mechanism for requesting and observing cancellation on a stop state. |
Created with MrDocs