diff options
author | Eugene Kosov <claprix@yandex.ru> | 2021-03-24 01:23:02 +0300 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2021-03-24 11:31:10 +0300 |
commit | bf6fa4092b51f4d5573fa8ff3ea8b9adeade1950 (patch) | |
tree | 772291148d04f2003aaa32517d2091ee3d3b9dde /sql/mysqld.cc | |
parent | cb545f11169d2425316d96feafc78ac841950e43 (diff) | |
download | mariadb-git-bb-10.6-cleanups.tar.gz |
cleanup: use std::thread::id instead of os_thread_id_tbb-10.6-cleanups
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r-- | sql/mysqld.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 4f522d96a9f..fc45a7d75c1 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -132,6 +132,7 @@ #define mysqld_charset &my_charset_latin1 +#include <thread> extern "C" { // Because of SCO 3.2V4.2 #include <sys/stat.h> @@ -5226,8 +5227,12 @@ static void test_lc_time_sz() #endif//DBUG_OFF +std::thread::id main_thread_id; + int mysqld_main(int argc, char **argv) { + main_thread_id = std::this_thread::get_id(); + #ifndef _WIN32 /* We can't close stdin just now, because it may be booststrap mode. */ bool please_close_stdin= fcntl(STDIN_FILENO, F_GETFD) >= 0; |