Add shape_type and index_type to static_thread_pool executor, as per specification.

This commit is contained in:
Christopher Kohlhoff 2020-08-04 08:30:38 +10:00
parent 38fda8db75
commit 331d28d98a
2 changed files with 104 additions and 0 deletions

View File

@ -168,6 +168,12 @@ public:
/// The sender type, when this type is used as a scheduler.
typedef basic_executor_type sender_type;
/// The bulk execution shape type.
typedef std::size_t shape_type;
/// The bulk execution index type.
typedef std::size_t index_type;
#if defined(ASIO_HAS_DEDUCED_EXECUTION_IS_TYPED_SENDER_TRAIT) \
&& defined(ASIO_HAS_STD_EXCEPTION_PTR)
template <

View File

@ -126395,6 +126395,13 @@ Executor used to submit functions to a thread pool.
[table
[[Name][Description]]
[
[[link asio.reference.thread_pool__basic_executor_type.index_type [*index_type]]]
[The bulk execution index type. ]
]
[
[[link asio.reference.thread_pool__basic_executor_type.sender_type [*sender_type]]]
@ -126402,6 +126409,13 @@ Executor used to submit functions to a thread pool.
]
[
[[link asio.reference.thread_pool__basic_executor_type.shape_type [*shape_type]]]
[The bulk execution shape type. ]
]
]
[heading Member Functions]
@ -126821,6 +126835,13 @@ Scheduler used to schedule receivers on a thread pool.
[table
[[Name][Description]]
[
[[link asio.reference.thread_pool__basic_executor_type.index_type [*index_type]]]
[The bulk execution index type. ]
]
[
[[link asio.reference.thread_pool__basic_executor_type.sender_type [*sender_type]]]
@ -126828,6 +126849,13 @@ Scheduler used to schedule receivers on a thread pool.
]
[
[[link asio.reference.thread_pool__basic_executor_type.shape_type [*shape_type]]]
[The bulk execution shape type. ]
]
]
[heading Member Functions]
@ -127234,6 +127262,13 @@ Executor implementation type used to submit functions to a thread pool.
[table
[[Name][Description]]
[
[[link asio.reference.thread_pool__basic_executor_type.index_type [*index_type]]]
[The bulk execution index type. ]
]
[
[[link asio.reference.thread_pool__basic_executor_type.sender_type [*sender_type]]]
@ -127241,6 +127276,13 @@ Executor implementation type used to submit functions to a thread pool.
]
[
[[link asio.reference.thread_pool__basic_executor_type.shape_type [*shape_type]]]
[The bulk execution shape type. ]
]
]
[heading Member Functions]
@ -127600,6 +127642,27 @@ For example:
[endsect]
[section:index_type thread_pool::basic_executor_type::index_type]
[indexterm2 asio.indexterm.thread_pool__basic_executor_type.index_type..index_type..thread_pool::basic_executor_type]
The bulk execution index type.
typedef std::size_t index_type;
[heading Requirements]
['Header: ][^asio/thread_pool.hpp]
['Convenience header: ][^asio.hpp]
[endsect]
@ -128463,6 +128526,13 @@ The sender type, when this type is used as a scheduler.
[table
[[Name][Description]]
[
[[link asio.reference.thread_pool__basic_executor_type.index_type [*index_type]]]
[The bulk execution index type. ]
]
[
[[link asio.reference.thread_pool__basic_executor_type.sender_type [*sender_type]]]
@ -128470,6 +128540,13 @@ The sender type, when this type is used as a scheduler.
]
[
[[link asio.reference.thread_pool__basic_executor_type.shape_type [*shape_type]]]
[The bulk execution shape type. ]
]
]
[heading Member Functions]
@ -128623,6 +128700,27 @@ The sender type, when this type is used as a scheduler.
[section:shape_type thread_pool::basic_executor_type::shape_type]
[indexterm2 asio.indexterm.thread_pool__basic_executor_type.shape_type..shape_type..thread_pool::basic_executor_type]
The bulk execution shape type.
typedef std::size_t shape_type;
[heading Requirements]
['Header: ][^asio/thread_pool.hpp]
['Convenience header: ][^asio.hpp]
[endsect]
[section:_basic_executor_type thread_pool::basic_executor_type::~basic_executor_type]
[indexterm2 asio.indexterm.thread_pool__basic_executor_type._basic_executor_type..~basic_executor_type..thread_pool::basic_executor_type]