MySQL 5.6 C API Developer Guide
unsigned int mysql_thread_safe(void)
This function indicates whether the client library is compiled as thread-safe.
1 if the client library is thread-safe, 0 otherwise.