|
cxxmcp 1.1.6
C++ MCP SDK
|
Owner side of a cooperative cancellation token. More...
#include <cancellation.hpp>
Public Member Functions | |
| CancellationToken | token () const noexcept |
| Returns a token sharing this source's cancellation state. | |
| void | cancel () const noexcept |
| Requests cancellation for all tokens created from this source. | |
| bool | cancelled () const noexcept |
| Returns true when cancellation has been requested. | |
Owner side of a cooperative cancellation token.
|
inlinenoexcept |
Requests cancellation for all tokens created from this source.
Sets the atomic flag and notifies all threads blocked in wait_for_cancel().