MySQL :: MySQL 8.4 C API Developer Guide :: 8.2.2 mysql_thread_init() (original) (raw)
Description
This function must be called early within each created thread to initialize thread-specific variables. However, it may be unnecessarily to invoke it explicitly. Callingmysql_thread_init() is automatically handled bymysql_init(),mysql_library_init(),mysql_server_init(), andmysql_connect(). If you invoke any of those functions,mysql_thread_init() is called for you.