Provides tokens and signals tokens cancellation. More...
#include <cvb/cancellation_token_source.hpp>
Public Member Functions | |
CancellationTokenSource () | |
Default constructor. More... | |
void * | Handle () const noexcept |
Classic API image handle. More... | |
CancellationTokenPtr | Token () const noexcept |
Get a token for this source. More... | |
void | Cancel () |
Signals the tokens cancellation. More... | |
Provides tokens and signals tokens cancellation.
|
inline |
Default constructor.
Any | exception derived from std::exception including CvbException. |
|
inline |
Signals the tokens cancellation.
Any | exception derived from std::exception including CvbException. |
|
inlinenoexcept |
Classic API image handle.
Does | not throw any exception. |
It is normally not necessary to work with this handle.
|
inlinenoexcept |
Get a token for this source.
Does | not throw any exception. |