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