Go to the source code of this file.
Functions | |
UNIV_INTERN void | thr_local_init (void) |
UNIV_INTERN void | thr_local_close (void) |
UNIV_INTERN void | thr_local_create (void) |
UNIV_INTERN void | thr_local_free (os_thread_id_t id) |
UNIV_INTERN ulint | thr_local_get_slot_no (os_thread_id_t id) |
UNIV_INTERN void | thr_local_set_slot_no (os_thread_id_t id, ulint slot_no) |
UNIV_INTERN ibool * | thr_local_get_in_ibuf_field (void) |
UNIV_INTERN void thr_local_close | ( | void | ) |
Close the thread local storage module.
Definition at line 281 of file thr0loc.cc.
References HASH_GET_FIRST, hash_get_n_cells(), HASH_GET_NEXT, thr_local_struct::magic_n, mem_free, thr_local_close(), ut_a, and ut_ad.
Referenced by innobase_shutdown_for_mysql(), and thr_local_close().
UNIV_INTERN void thr_local_create | ( | void | ) |
Creates a local storage struct for the calling new thread.
Definition at line 201 of file thr0loc.cc.
References thr_local_struct::handle, HASH_INSERT, thr_local_struct::id, thr_local_struct::in_ibuf, thr_local_struct::magic_n, os_thread_get_curr(), os_thread_get_curr_id(), os_thread_pf(), thr_local_struct::slot_no, thr_local_create(), and thr_local_init().
Referenced by thr_local_create().
UNIV_INTERN void thr_local_free | ( | os_thread_id_t | id) |
Frees the local storage struct for the specified thread. in: thread id
Frees the local storage struct for the specified thread.
id | in: thread id |
Definition at line 231 of file thr0loc.cc.
References HASH_DELETE, HASH_SEARCH, thr_local_struct::id, thr_local_struct::magic_n, mem_free, os_thread_eq(), os_thread_pf(), thr_local_free(), ut_a, and ut_ad.
Referenced by InnobaseEngine::close_connection(), srv_purge_thread(), and thr_local_free().
UNIV_INTERN ibool* thr_local_get_in_ibuf_field | ( | void | ) |
Returns pointer to the 'in_ibuf' field within the current thread local storage.
Definition at line 183 of file thr0loc.cc.
References thr_local_struct::in_ibuf, os_thread_get_curr_id(), and thr_local_get_in_ibuf_field().
Referenced by thr_local_get_in_ibuf_field().
UNIV_INTERN ulint thr_local_get_slot_no | ( | os_thread_id_t | id) |
Gets the slot number in the thread table of a thread.
Gets the slot number in the thread table of a thread.
id | in: thread id of the thread |
Definition at line 139 of file thr0loc.cc.
References thr_local_struct::slot_no, and thr_local_get_slot_no().
Referenced by srv_get_thread_type(), and thr_local_get_slot_no().
UNIV_INTERN void thr_local_init | ( | void | ) |
Initializes the thread local storage module.
Definition at line 265 of file thr0loc.cc.
References thr_local_init(), and ut_a.
Referenced by srv_general_init(), thr_local_create(), and thr_local_init().
UNIV_INTERN void thr_local_set_slot_no | ( | os_thread_id_t | id, |
ulint | slot_no | ||
) |
Sets in the local storage the slot number in the thread table of a thread. in: slot number
Sets the slot number in the thread table of a thread.
id | in: thread id of the thread |
slot_no | in: slot number |
Definition at line 161 of file thr0loc.cc.
References thr_local_struct::slot_no, and thr_local_set_slot_no().
Referenced by thr_local_set_slot_no().