1mysql_thread_init(3) MariaDB Connector/C mysql_thread_init(3)
2
3
4
5 Name
6 mysql_thread_init - initialize thread
7
8 Synopsis
9 #include <mysql.h>
10
11 my_bool mysql_thread_init(void );
12
13 Description
14 Thread initialization for multi threaded clients. Multi threaded
15 clients should call mysql_thread_init() at the beginning of the thread
16 initialization to initialize thread specific client library variables.
17 If mysql_thread_init() was not called explicitly, it will be called au‐
18 tomatically by mysql_init(3) or mysql_real_connect(3).
19
20 Notes
21 Before a client thread ends the mysql_thread_end(3) function must be
22 called to release memory - otherwise the client library will report an
23 error.
24
25 Return value
26 Returns zero if successful or 1 if an error occurred.
27
28 History
29 This function is deprecated since MariaDB Connector/C 3.0.0.
30
31 See also
32 • mysql_thread_end(3)
33
34 • mysql_thread_safe(3)
35
36
37
38Version 3.3.1 mysql_thread_init(3)