Name

mysql_thread_safe( )

Synopsis

unsigned int mysql_thread_safe(void)

Use this to determine whether the MySQL client library is safe for a threaded environment. It returns 1 if safe, 0 if not.

...
if(mysql_thread_safe( ))
   { printf("Safe Environment \n"); }
else{ printf("Unsafe Environment \n"); }
...

Get MySQL in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.