![]() |
MySQL 8.0.43
Source Code Documentation
|
queued work from io_context::executor_type::dispatch()/post()/defer(). More...
Classes | |
| class | BasicCallable |
| class | Callable |
Public Types | |
| using | op_type = std::unique_ptr< BasicCallable > |
Public Member Functions | |
| size_t | run_one () |
| run a deferred work item. More... | |
| template<class Func , class ProtoAllocator > | |
| void | post (Func &&f, const ProtoAllocator &) |
| queue work for later execution. More... | |
| bool | has_outstanding_work () const |
| check if work is queued for later execution. More... | |
Private Attributes | |
| std::mutex | work_mtx_ |
| std::list< op_type > | work_ |
queued work from io_context::executor_type::dispatch()/post()/defer().
| using net::io_context::DeferredWork::op_type = std::unique_ptr<BasicCallable> |
|
inline |
check if work is queued for later execution.
| true | if some work is queued. |
|
inline |
queue work for later execution.
|
inline |
run a deferred work item.
| 0 | work queue was empty, nothing was run. |
|
private |
|
mutableprivate |