![]() |
MySQL 8.0.43
Source Code Documentation
|
Portable wrapper for gettid(). More...
#include "my_config.h"#include "my_macros.h"#include "my_thread.h"#include <sys/syscall.h>#include <unistd.h>Go to the source code of this file.
Typedefs | |
| typedef unsigned long long | my_thread_os_id_t |
Functions | |
| static my_thread_os_id_t | my_thread_os_id () |
| Return the operating system thread id. More... | |
Portable wrapper for gettid().
| typedef unsigned long long my_thread_os_id_t |
|
inlinestatic |
Return the operating system thread id.
With Linux, threads have:
pthread_self(), visible in processgettid(), visible in the operating system, for example with perf in linux. This helper returns the underling operating system thread id.