This component‐private struct adds a reference count to the internal StopState class. This reference count represents the number of bsl::stop_source objects that refer to the stop state (NOT the total number of objects that refer to the stop state).
Synopsis
Declared in <bslstl_stoptoken.h>
struct StopToken_RefCountedState
: StopState
Description
Implementation note: The reference count has been kept outside the StopState object in order to enable StopState to potentially be reused to implement in_place_stop_source (from WG21 proposal P2300R7) without the overhead from the reference count.
Base Classes
Name |
Description |
Shared stop state that tracks a stop request and registered callbacks. |
Member Functions
Name |
Description |
If the callback of the specified |
|
If a stop has already been requested, then invoke the callback of the specified |
|
If this |
|
Return |
Data Members
Name |
Description |
The number of |
Created with MrDocs