Fix Visual Studio poor std::this_thread::get_id() performance by using GetCurrentThreadId() (and pthread_self() under linux)

This commit is contained in:
gabime
2015-04-07 20:26:42 +03:00
parent 67e0957e67
commit a09107927b
5 changed files with 22 additions and 7 deletions

View File

@@ -60,7 +60,7 @@ class async_log_helper
level::level_enum level;
log_clock::time_point time;
std::string txt;
std::thread::id thread_id;
uint64_t thread_id;
async_msg() = default;
~async_msg() = default;