MXS-2004 Replace pthread_self() with std::this_thread::get_id()

This commit is contained in:
Johan Wikman
2018-08-13 13:33:23 +03:00
parent 0c56be1e58
commit 4fdec4d1f3
2 changed files with 14 additions and 7 deletions

View File

@ -27,6 +27,8 @@
#include <stdint.h>
#include <zlib.h>
#include <thread>
#include <maxscale/buffer.h>
#include <maxscale/dcb.h>
#include <maxscale/protocol/mysql.h>
@ -534,7 +536,7 @@ typedef struct router_slave
/*< lsi: Last Sent Information */
blr_thread_role_t lsi_sender_role;
/*< Master or slave code sent */
uint64_t lsi_sender_tid;
std::thread::id lsi_sender_tid;
/*< Who sent */
char lsi_binlog_name[BINLOG_FNAMELEN + 1];
/*< Which binlog file */