OZO 「お象」
Boost.Asio and libpq based asynchronous PostgreSQL unofficial header-only C++17 client library.
ozo::cancel_handle< Executor > Class Template Reference

#include <ozo/cancel.h>

Description

template<typename Executor>
class ozo::cancel_handle< Executor >

Cancel operation handle.

This class decoupling the Connection object from the ozo::cancel() operation to be more concurrent-safe and thread-safe.

Types

using executor_type = std::decay_t< Executor >
 Cancel operation Executor type.
 
using native_handle_type = PGcancel *
 Cancel operation native libpq handle type.
 

Public Member Functions

executor_type get_executor () const
 Executor object cancel operation to run on.
 
native_handle_type native_handle () const
 Cancel operation native libpq handle.