24#ifndef MYSQL_CONCURRENCY_THREAD_STL_H
25#define MYSQL_CONCURRENCY_THREAD_STL_H
27#ifdef MYSQL_CONCURRENCY_THREAD_SRV_H
28#error Inclusion of both thread_stl.h and thread_srv.h is prohibited.
35#define MDEF_TH_KEY(key)
49 return my_internal_id;
54#define MDEF_CREATE_THREAD(thread_key, callable, ...) \
55 mysql::concurrency::Thread(callable, __VA_ARGS__)
Wrapper to mysql thread, which matches interface of std::thread.
Definition: thread_srv.h:46
Definition: cache_line_size.h:31
unsigned long long fetch_thread_mysql_id(std::size_t my_internal_id)
Fetches internal id, PSI id in case linked with mysqld, or internal thread id.
Definition: thread_srv.h:91
PSI_thread_key Thread_key
Definition: thread_srv.h:43
Definition: key_stub.h:32