1mysql_thread_id(3)            MariaDB Connector/C           mysql_thread_id(3)
2
3
4
5   Name
6       mysql_thread_id - Returns id of the current connection
7
8   Synopsis
9              #include <mysql.h>
10
11              unsigned long mysql_thread_id(MYSQL * mysql);
12
13   Description
14       The  mysql_thread_id()  function  returns the thread id for the current
15       connection.
16
17   Parameter
18       • mysql  -  a  mysql  handle,  which  was   previously   allocated   by
19         mysql_init(3) and connected by mysql_real_connect(3).  ### Notes
20
21       • The current connection can be killed with mysql_kill(3).
22
23       • If  reconnect  option  is  enabled  the thread id might change if the
24         client reconnects to the server.
25
26   Return value
27       Returns the thread id of the current connection.
28
29   See also
30mysql_kill(3)
31
32mysql_options(3)
33
34
35
36Version 3.3.1                                               mysql_thread_id(3)
Impressum