> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/connectors/mariadb-connector-c/api-functions/mysql_thread_safe.md).

# 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.

## Return Value

Returns always 1.

{% hint style="info" %}
This function exists for compatibility reasons and returns always 1.
{% endhint %}

## See Also

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

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