About mysql_thread_init()

2004-09-16 Thread Lung Fan Ying Lung
Dear All, I need to share few connections between C program's threads. I would like to ask one question: Do I need to call mysql_thread_init() per each connection in each thread? Or I just need to call mysql_thread_init() once per thread? Thank you. Regards, ---

__libc_read() hangs using MySQL-devel-4.0.18-0

2004-09-12 Thread Lung Fan Ying Lung
Dear All, I am using mysql C API for my multi-thread program development (using C++ to develop, Using Redhat 7.2 with 2.4.18-3 kernel version, MySQL-devel-4.0.18-0). In some threads, I will open a new mysql database connection to get the data. While sometime I have the problem in mysql_real_connec