# mysql\_thread\_safe

## Syntax

```c
unsigned int mysql_thread_safe(void );
```

## Description

Indicates whether or not the client library is compiled as thread safe. Returns `1` if the client library was compiled as thread safe otherwise zero.

{% hint style="info" %}
By default the mariadb client library is compiled as thread safe.
{% endhint %}

## See also

* [mysql\_thread\_init()](https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_thread_init)
* [mysql\_thread\_end()](https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_thread_end)

{% @marketo/form formId="4316" %}
