[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. |