Make the io_context executor's execute, require, and query functions private.
This commit is contained in:
parent
171328a6cb
commit
b88b70a49f
@ -713,6 +713,12 @@ public:
|
|||||||
basic_executor_type&& other) ASIO_NOEXCEPT;
|
basic_executor_type&& other) ASIO_NOEXCEPT;
|
||||||
#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
|
#endif // defined(ASIO_HAS_MOVE) || defined(GENERATING_DOCUMENTATION)
|
||||||
|
|
||||||
|
#if !defined(GENERATING_DOCUMENTATION)
|
||||||
|
private:
|
||||||
|
friend struct asio_require_fn::impl;
|
||||||
|
friend struct asio_prefer_fn::impl;
|
||||||
|
#endif // !defined(GENERATING_DOCUMENTATION)
|
||||||
|
|
||||||
/// Obtain an executor with the @c blocking.possibly property.
|
/// Obtain an executor with the @c blocking.possibly property.
|
||||||
/**
|
/**
|
||||||
* Do not call this function directly. It is intended for use with the
|
* Do not call this function directly. It is intended for use with the
|
||||||
@ -852,6 +858,13 @@ public:
|
|||||||
io_context_, std::allocator<void>(), bits_);
|
io_context_, std::allocator<void>(), bits_);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(GENERATING_DOCUMENTATION)
|
||||||
|
private:
|
||||||
|
friend struct asio_query_fn::impl;
|
||||||
|
friend struct asio::execution::detail::mapping_t<0>;
|
||||||
|
friend struct asio::execution::detail::outstanding_work_t<0>;
|
||||||
|
#endif // !defined(GENERATING_DOCUMENTATION)
|
||||||
|
|
||||||
/// Query the current value of the @c mapping property.
|
/// Query the current value of the @c mapping property.
|
||||||
/**
|
/**
|
||||||
* Do not call this function directly. It is intended for use with the
|
* Do not call this function directly. It is intended for use with the
|
||||||
@ -974,6 +987,7 @@ public:
|
|||||||
return allocator_;
|
return allocator_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public:
|
||||||
/// Determine whether the io_context is running in the current thread.
|
/// Determine whether the io_context is running in the current thread.
|
||||||
/**
|
/**
|
||||||
* @return @c true if the current thread is running the io_context. Otherwise
|
* @return @c true if the current thread is running the io_context. Otherwise
|
||||||
@ -1005,6 +1019,11 @@ public:
|
|||||||
|| a.bits_ != b.bits_;
|
|| a.bits_ != b.bits_;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined(GENERATING_DOCUMENTATION)
|
||||||
|
private:
|
||||||
|
friend struct asio_execution_execute_fn::impl;
|
||||||
|
#endif // !defined(GENERATING_DOCUMENTATION)
|
||||||
|
|
||||||
/// Execution function.
|
/// Execution function.
|
||||||
/**
|
/**
|
||||||
* Do not call this function directly. It is intended for use with the
|
* Do not call this function directly. It is intended for use with the
|
||||||
@ -1018,6 +1037,7 @@ public:
|
|||||||
void execute(ASIO_MOVE_ARG(Function) f) const;
|
void execute(ASIO_MOVE_ARG(Function) f) const;
|
||||||
|
|
||||||
#if !defined(ASIO_NO_TS_EXECUTORS)
|
#if !defined(ASIO_NO_TS_EXECUTORS)
|
||||||
|
public:
|
||||||
/// Obtain the underlying execution context.
|
/// Obtain the underlying execution context.
|
||||||
io_context& context() const ASIO_NOEXCEPT;
|
io_context& context() const ASIO_NOEXCEPT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user