Bug #43539 Multi-threaded C API client examples needed
Submitted: 10 Mar 2009 18:10 Modified: 18 Oct 2019 13:05
Reporter: Andrew Hutchings Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Documentation Severity:S4 (Feature request)
Version: OS:Any
Assigned to: Paul DuBois CPU Architecture:Any

[10 Mar 2009 18:10] Andrew Hutchings
Description:
There does not appear to be any good multi-threaded client C API examples in the docs.

Additionally for signal use the docs currently state:
"When using a threaded client and you want to use timeouts and interrupts, you can make great use of the routines in the thr_alarm.c file."

Some proper examples on how to do this would be helpful.

How to repeat:
See above

Suggested fix:
1. Create an example of a multi-threaded client sharing one connection
2. Create an example of a multi-threaded client using a connection per-thread
3. Create an example of how to use thr_alarm with multi-threaded applications
[18 Oct 2019 13:04] Paul DuBois
Posted by developer:
 
re: thr_alarm.c, this file was removed in MySQL 5.7.5 and is no longer relevant. See:
https://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-5.html

re: Example programs, I have elected to point out in
https://dev.mysql.com/doc/refman/8.0/en/c-api-threaded-clients.html
where in a MySQL source distribution you can find client programs that
use the C API threading calls.