|
cxxmcp 1.1.6
C++ MCP SDK
|
Shared state backing a cancellation token/source pair. More...
#include <cancellation.hpp>
Shared state backing a cancellation token/source pair.
The atomic flag provides a fast-path check for cancelled(). The mutex and condition variable are only used when wait_for_cancel() is called. This keeps the common path (polling cancelled()) allocation-free after the initial CancellationState construction.