Provides tokens and signals tokens cancellation. More...
#include <cvb/cancellation_token_source.hpp>
Public Member Functions | |
| CancellationTokenSource () | |
| Default constructor. | |
| void * | Handle () const noexcept |
| Classic API image handle. | |
| CancellationTokenPtr | Token () const noexcept |
| Get a token for this source. | |
| void | Cancel () |
| Signals the tokens cancellation. | |
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. |