MySQL 8.0.37
Source Code Documentation
Mysql::Tools::Dump::Thread_specific_connection_provider Class Reference

#include <thread_specific_connection_provider.h>

Inheritance diagram for Mysql::Tools::Dump::Thread_specific_connection_provider:
[legend]

Public Member Functions

 Thread_specific_connection_provider (Mysql::Tools::Base::I_connection_factory *connection_factory)
 
 ~Thread_specific_connection_provider () override
 
Mysql::Tools::Base::Mysql_query_runnerget_runner (std::function< bool(const Mysql::Tools::Base::Message_data &)> *message_handler) override
 
- Public Member Functions inherited from Mysql::Tools::Dump::I_connection_provider
virtual ~I_connection_provider ()=default
 

Private Attributes

std::mutex mu
 
std::unordered_map< std::thread::id, Mysql::Tools::Base::Mysql_query_runner * > m_runners
 

Additional Inherited Members

- Protected Member Functions inherited from Mysql::Tools::Dump::Abstract_connection_provider
 Abstract_connection_provider (Mysql::Tools::Base::I_connection_factory *connection_factory)
 
virtual Mysql::Tools::Base::Mysql_query_runnercreate_new_runner (std::function< bool(const Mysql::Tools::Base::Message_data &)> *message_handler)
 

Constructor & Destructor Documentation

◆ Thread_specific_connection_provider()

Thread_specific_connection_provider::Thread_specific_connection_provider ( Mysql::Tools::Base::I_connection_factory connection_factory)
explicit

◆ ~Thread_specific_connection_provider()

Thread_specific_connection_provider::~Thread_specific_connection_provider ( )
override

Member Function Documentation

◆ get_runner()

Mysql::Tools::Base::Mysql_query_runner * Thread_specific_connection_provider::get_runner ( std::function< bool(const Mysql::Tools::Base::Message_data &)> *  message_handler)
overridevirtual

Member Data Documentation

◆ m_runners

std::unordered_map<std::thread::id, Mysql::Tools::Base::Mysql_query_runner *> Mysql::Tools::Dump::Thread_specific_connection_provider::m_runners
private

◆ mu

std::mutex Mysql::Tools::Dump::Thread_specific_connection_provider::mu
private

The documentation for this class was generated from the following files: