24#ifndef SQL_SERVER_COMPONENT_MYSQL_THD_STORE_IMP_H
25#define SQL_SERVER_COMPONENT_MYSQL_THD_STORE_IMP_H
27#include <unordered_map>
35 std::unordered_map<unsigned int, void *> &data);
#define MYSQL_THD
Definition: backup_page_tracker.h:38
Definition: mysql_thd_store_imp.h:37
static mysql_service_status_t set(MYSQL_THD thd, mysql_thd_store_slot slot, void *object) noexcept
Adds an opaque pointer to the session object.
Definition: mysql_thd_store_imp.cc:152
static mysql_service_status_t register_slot(const char *name, free_resource_fn free_fn, mysql_thd_store_slot *slot) noexcept
Register a slot to store data specific to a component.
Definition: mysql_thd_store_imp.cc:123
static mysql_service_status_t unregister_slot(mysql_thd_store_slot slot) noexcept
Unregister a slot.
Definition: mysql_thd_store_imp.cc:139
static void * get(MYSQL_THD thd, mysql_thd_store_slot slot) noexcept
Get handle to an already stored object without removing it.
Definition: mysql_thd_store_imp.cc:164
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
void deinit_thd_store_service()
Definition: mysql_thd_store_imp.cc:109
void init_thd_store_service()
Definition: mysql_thd_store_imp.cc:104
bool free_thd_store_resource(THD *thd, std::unordered_map< unsigned int, void * > &data)
Definition: mysql_thd_store_imp.cc:115
Connection event tracking.
int(* free_resource_fn)(void *)
Callback to free resource stored in THD.
Definition: mysql_thd_store_service.h:37
struct mysql_thd_store_slot_imp * mysql_thd_store_slot
Definition: mysql_thd_store_service.h:30
Specifies macros to define Service Implementations.
#define DEFINE_BOOL_METHOD(name, args)
A short macro to define method that returns bool, which is the most common case.
Definition: service_implementation.h:88
#define DEFINE_METHOD(retval, name, args)
A macro to ensure method implementation has required properties, that is it does not throw exceptions...
Definition: service_implementation.h:79
case opt name
Definition: sslopt-case.h:33