23#ifndef SQL_SERVER_COMPONENT_MYSQL_THD_STORE_IMP_H
24#define SQL_SERVER_COMPONENT_MYSQL_THD_STORE_IMP_H
26#include <unordered_map>
34 std::unordered_map<unsigned int, void *> &data);
#define MYSQL_THD
Definition: backup_page_tracker.h:37
Definition: mysql_thd_store_imp.h:36
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:154
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:125
static mysql_service_status_t unregister_slot(mysql_thd_store_slot slot) noexcept
Unregister a slot.
Definition: mysql_thd_store_imp.cc:141
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:166
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
void deinit_thd_store_service()
Definition: mysql_thd_store_imp.cc:111
void init_thd_store_service()
Definition: mysql_thd_store_imp.cc:106
bool free_thd_store_resource(THD *thd, std::unordered_map< unsigned int, void * > &data)
Definition: mysql_thd_store_imp.cc:117
Connection event tracking.
int(* free_resource_fn)(void *)
Callback to free resource stored in THD.
Definition: mysql_thd_store_service.h:36
struct mysql_thd_store_slot_imp * mysql_thd_store_slot
Definition: mysql_thd_store_service.h:29
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:87
#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:78
case opt name
Definition: sslopt-case.h:32