MySQL 8.0 C API Developer Guide
To create a threaded client, use the functions described in the following sections. See also Section 4.3, “Writing C API Threaded Client Programs”.