mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-33748 get rid of pthread_(get_/set_)specific, use thread_local
Apart from better performance when accessing thread local variables, we'll get rid of things that depend on initialization/cleanup of pthread_key_t variables. Where appropriate, use compiler-dependent pre-C++11 thread-local equivalents, where it makes sense, to avoid initialization check overhead that non-static thread_local can suffer from.
This commit is contained in:
@@ -92,7 +92,7 @@ class table_variables_by_thread_context : public PFS_table_context
|
||||
{
|
||||
public:
|
||||
table_variables_by_thread_context(ulonglong hash_version, bool restore) :
|
||||
PFS_table_context(hash_version, global_thread_container.get_row_count(), restore, THR_PFS_VBT) { }
|
||||
PFS_table_context(hash_version, global_thread_container.get_row_count(), restore, &THR_PFS_VBT) { }
|
||||
};
|
||||
|
||||
/** Table PERFORMANCE_SCHEMA.VARIABLES_BY_THREAD. */
|
||||
|
Reference in New Issue
Block a user