From 2c72c31e1c326c3bd6a2c01711b15a3f81d87226 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Mon, 19 Mar 2012 15:33:50 +0900 Subject: [PATCH] Since logs are now thread-safe, allow all threads to push log messages. #43 --- src/core/manager.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/core/manager.cc b/src/core/manager.cc index 1348fbf5..43c70ba2 100644 --- a/src/core/manager.cc +++ b/src/core/manager.cc @@ -137,9 +137,6 @@ Manager::handshake_log(const sockaddr* sa, int msg, int err, const torrent::Hash void Manager::push_log(const char* msg) { - if (!pthread_equal(pthread_self(), torrent::main_thread()->pthread())) - throw torrent::internal_error("Manager::push_log(...): Cannot call this function from other threads than 'main'."); - m_log_important->lock_and_push_log(msg, strlen(msg), 0); m_log_complete->lock_and_push_log(msg, strlen(msg), 0); }