mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 21:12:26 +01:00
e6090f10bb
htttp://lists.mysql.com/commits/50957?f=plain Always use TLS functions instead of __declspec(thread) to access thread local storage variables. The change removes the necessity to recomplile the same source files twice - with USE_TLS for DLLs and without USE_TLS for EXEs. Real benefit of this change is better readability and maintainability of TLS functions within MySQL. There is a performance loss using TlsXXX functions compared to __declspec but the difference is negligible in practice. In a sysbench-like benchmark I ran with with TlsGetValue, pthread_[get|set]_specific was called 600000000 times and took 0.17sec of total 35min CPU time, or 0.008%. |
||
---|---|---|
.. | ||
.cvsignore | ||
acinclude.m4 | ||
client_settings.h | ||
CMakeLists.txt | ||
conf_to_src.c | ||
dll.c | ||
errmsg.c | ||
get_password.c | ||
libmysql.c | ||
libmysql.def | ||
libmysql.ver.in | ||
Makefile.am | ||
Makefile.shared | ||
manager.c |