[MDEV-22437] make THR_THD* variable thread_local Created: 2020-05-02  Updated: 2020-05-05  Resolved: 2020-05-05

Status: Closed
Project: MariaDB Server
Component/s: Server
Fix Version/s: 10.5.3

Type: Task Priority: Major
Reporter: Eugene Kosov (Inactive) Assignee: Eugene Kosov (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

Since 10.5 all supported compilers know about C++11 thread_local. It's faster than library implementations like pthread_getspecific(). So, lets optimize access to this variable a little bit by using native TLS implementation.


Generated at Thu Feb 08 09:14:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.