cxxmcp 1.1.6
C++ MCP SDK
Loading...
Searching...
No Matches
cancellation.hpp File Reference

Cooperative cancellation primitives shared by SDK lifecycle APIs. More...

#include <atomic>
#include <chrono>
#include <condition_variable>
#include <cstddef>
#include <functional>
#include <memory>
#include <mutex>
#include <utility>
#include <vector>

Go to the source code of this file.

Classes

struct  mcp::CancellationState
 Shared state backing a cancellation token/source pair. More...
 
class  mcp::detail::CancellationRegistration
 
class  mcp::CancellationToken
 Copyable token observed by cancellation-aware SDK operations. More...
 
class  mcp::CancellationSource
 Owner side of a cooperative cancellation token. More...
 

Functions

CancellationRegistration mcp::detail::register_cancellation_callback (CancellationToken token, std::function< void()> callback)
 

Detailed Description

Cooperative cancellation primitives shared by SDK lifecycle APIs.