From 6be74d17df75714066b36cfa6ae40081526ef477 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Fri, 16 Oct 2015 21:12:30 -0400 Subject: Refactor thread utility interface - Add "thr_" prefix to thread utility functions - Compare threadid_ts in a portable manner, where possible --- src/log.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/log.cpp') diff --git a/src/log.cpp b/src/log.cpp index 4f77101f9..e15bed52a 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -184,14 +184,14 @@ void Logger::setLevelSilenced(LogLevel lev, bool silenced) void Logger::registerThread(const std::string &name) { - threadid_t id = get_current_thread_id(); + threadid_t id = thr_get_current_thread_id(); MutexAutoLock lock(m_mutex); m_thread_names[id] = name; } void Logger::deregisterThread() { - threadid_t id = get_current_thread_id(); + threadid_t id = thr_get_current_thread_id(); MutexAutoLock lock(m_mutex); m_thread_names.erase(id); } @@ -215,7 +215,7 @@ const std::string Logger::getThreadName() { std::map::const_iterator it; - threadid_t id = get_current_thread_id(); + threadid_t id = thr_get_current_thread_id(); it = m_thread_names.find(id); if (it != m_thread_names.end()) return it->second; -- cgit v1.2.3