mysql_thread_init

Syntax

my_bool mysql_thread_init(void );

Description

Thread initialization for multi threaded clients. Multi threaded clients should call mysql_thread_init() at the beginning of the thread initialization to initialize thread specific client library variables. If mysql_thread_init() was not called explicitly, it will be called automatically by mysql_init() or mysql_real_connect().

Returns zero if successful or 1 if an error occurred.

Before a client thread ends the mysql_thread_end() function must be called to release memory - otherwise the client library will report an error.

See also

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.