#include <io_context.h>
◆ executor_type() [1/3]
net::io_context::executor_type::executor_type |
( |
const executor_type & |
rhs | ) |
|
|
defaultnoexcept |
◆ executor_type() [2/3]
net::io_context::executor_type::executor_type |
( |
executor_type && |
rhs | ) |
|
|
defaultnoexcept |
◆ ~executor_type()
net::io_context::executor_type::~executor_type |
( |
| ) |
|
|
default |
◆ executor_type() [3/3]
net::io_context::executor_type::executor_type |
( |
io_context & |
ctx | ) |
|
|
inlineexplicitprivate |
◆ context()
io_context & net::io_context::executor_type::context |
( |
| ) |
const |
|
inlinenoexcept |
◆ defer()
template<class Func , class ProtoAllocator >
void net::io_context::executor_type::defer |
( |
Func && |
f, |
|
|
const ProtoAllocator & |
a |
|
) |
| const |
|
inline |
defer function call for later execution.
Effect:
The executor:
- SHALL NOT block forward progress of the caller pending completion of f().
- SHOULD NOT begin f()'s progress before the call to defer() completes.
◆ dispatch()
template<class Func , class ProtoAllocator >
void net::io_context::executor_type::dispatch |
( |
Func && |
f, |
|
|
const ProtoAllocator & |
a |
|
) |
| const |
|
inline |
execute function.
Effect:
The executor
- MAY block forward progress of the caller until f() finishes.
◆ on_work_finished()
void net::io_context::executor_type::on_work_finished |
( |
| ) |
const |
|
inlinenoexcept |
◆ on_work_started()
void net::io_context::executor_type::on_work_started |
( |
| ) |
const |
|
inlinenoexcept |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ post()
template<class Func , class ProtoAllocator >
void net::io_context::executor_type::post |
( |
Func && |
f, |
|
|
const ProtoAllocator & |
a |
|
) |
| const |
|
inline |
queue function for execution.
Effects:
The executor
- SHALL NOT block forward progress of the caller pending completion of f().
- MAY begin f() progress before the call to post completes.
◆ running_in_this_thread()
bool net::io_context::executor_type::running_in_this_thread |
( |
| ) |
const |
|
inlinenoexcept |
◆ io_context
friend net::io_context::executor_type::io_context |
|
private |
◆ io_ctx_
The documentation for this class was generated from the following file:
- router/src/harness/include/mysql/harness/net_ts/io_context.h