23#ifndef THD_BACKUP_AND_RESTORE_INCLUDED
24#define THD_BACKUP_AND_RESTORE_INCLUDED
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Helper class to switch to a new thread and then go back to the previous one, when the object is destr...
Definition: thd_backup_and_restore.h:64
Thd_backup_and_restore(THD *backup_thd, THD *new_thd)
Try to attach the POSIX thread to a session.
Definition: thd_backup_and_restore.cc:26
THD * m_backup_thd
Definition: thd_backup_and_restore.h:80
my_thread_t m_new_thd_old_real_id
Definition: thd_backup_and_restore.h:84
THD * m_dummy_cnt_thd
Definition: thd_backup_and_restore.h:83
THD * m_new_thd
Definition: thd_backup_and_restore.h:81
~Thd_backup_and_restore()
Restores to previous thd.
Definition: thd_backup_and_restore.cc:45
THD * m_backup_cnt_thd
Definition: thd_backup_and_restore.h:82
const char * m_new_thd_old_thread_stack
Definition: thd_backup_and_restore.h:85
Types to make different thread packages compatible.
pthread_t my_thread_t
Definition: my_thread_bits.h:48