Bug #9273 Usage of my_thread_init(),my_thread_end() with dyn. clientlib on win32 platform
Submitted: 18 Mar 2005 11:20 Modified: 18 Mar 2005 12:53
Reporter: Armin Schöffmann (OCA) Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Documentation Severity:S3 (Non-critical)
Version:4.1.10 OS:Windows (win32)
Assigned to: CPU Architecture:Any

[18 Mar 2005 11:20] Armin Schöffmann
Description:
According to dll.c:
Within win32, LibMain calls mysql_thread_init() and mysql_thread_end() automatically for each new thread created after the lib has been loaded.
Therefor it shouldn't be necessary to call these functions again.

Maybe a hint in the docu would be helpful.

Especially for threadpooled applications under win2k/xp, the correct usage of thread_ini/thread_end causes some complications as you never know, when your thread actually has died.

How to repeat:
-

Suggested fix:
-
[18 Mar 2005 12:53] MySQL Verification Team
Please read the Manual's items:

http://dev.mysql.com/doc/mysql/en/c-thread-functions.html
http://dev.mysql.com/doc/mysql/en/threaded-clients.html