April 2008
Intermediate to advanced
566 pages
21h 55m
English
mysql_thread_id()
unsigned long mysql_thread_id(MYSQL *mysql)
This function returns the thread identifier number for the current connection to MySQL. Thread identifiers can change if a connection is closed or restarted. Here is an example:
...
int thread = mysql_thread_id(mysql);
printf("Thread ID: %d \n", thread);
...Read now
Unlock full access