MySQL 9.1.0
Source Code Documentation
|
#include <executor.h>
Classes | |
struct | __tag |
Public Types | |
using | executor_type = system_executor |
Public Member Functions | |
system_context ()=delete | |
system_context (const system_context &)=delete | |
system_context & | operator= (const system_context &)=delete |
~system_context () override | |
executor_type | get_executor () noexcept |
void | stop () |
bool | stopped () const noexcept |
void | join () |
Public Member Functions inherited from net::execution_context | |
execution_context ()=default | |
execution_context (const execution_context &)=delete | |
execution_context & | operator= (const execution_context &)=delete |
virtual | ~execution_context () |
void | notify_fork (fork_event e) |
Private Member Functions | |
system_context (__tag) | |
void | run_ () |
void | post_ (std::function< void()> f) |
Static Private Member Functions | |
static system_context & | get_ () noexcept |
Private Attributes | |
std::thread | thread_ |
std::mutex | mtx_ |
std::condition_variable | cv_ |
std::queue< std::function< void()> > | tasks_ |
bool | stopped_ {false} |
Friends | |
class | system_executor |
Additional Inherited Members | |
Protected Types inherited from net::execution_context | |
using | service_key_type = std::type_index |
Protected Member Functions inherited from net::execution_context | |
void | shutdown () noexcept |
void | destroy () noexcept |
template<typename Service , class... Args> | |
service * | add_service (Args &&...args) |
Static Protected Member Functions inherited from net::execution_context | |
template<class Service > | |
static void | service_deleter (service *svc) |
template<class Key > | |
static service_key_type | service_key () |
maps selected type to unique identifier. More... | |
Protected Attributes inherited from net::execution_context | |
std::mutex | services_mtx_ |
std::list< ServicePtr > | services_ |
std::unordered_map< service_key_type, service * > | keys_ |
|
delete |
|
delete |
|
inlineoverride |
|
inlineprivate |
|
inlinestaticprivatenoexcept |
|
inlinenoexcept |
|
inline |
|
delete |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inlinenoexcept |
|
friend |
|
private |
|
mutableprivate |
|
private |
|
private |
|
private |