[CONC-183] Get rid if mysql_thread_init/mysql_thread_end Created: 2016-05-15  Updated: 2016-05-15  Resolved: 2016-05-15

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: None
Fix Version/s: N/A

Type: Task Priority: Minor
Reporter: Vladislav Vaintroub Assignee: Georg Richter
Resolution: Won't Fix Votes: 0
Labels: None


 Description   

MySQL5.7.9 got rid of some of it (mysql_thread_end) . Except when DBUG is used, which is not used in MariaDB Connector . The per-thread initialization/destruction is a pain for many use cases (any thread pooling using client library would have problems with it)

See http://dev.mysql.com/doc/refman/5.7/en/mysql-thread-end.html



 Comments   
Comment by Georg Richter [ 2016-05-15 ]

The api functions mysql_thread_init and mysql_thread_end still exist to make sure exisiting applications will work with Connector/C 3.0.

They are just dummies and don't do anything:

my_bool STDCALL mysql_thread_init(void)
{
  return 0;
}
 
void STDCALL mysql_thread_end(void)
{
}

Generated at Thu Feb 08 03:03:28 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.