[Libreoffice-commits] online.git: net/Socket.hpp

Jan Holesovsky kendy at collabora.com
Wed Apr 5 12:55:39 UTC 2017


 net/Socket.hpp |    4 ----
 1 file changed, 4 deletions(-)

New commits:
commit b6270fae57bf5f9512ea23a86c24eb9920dbe32f
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Wed Apr 5 14:54:54 2017 +0200

    setThreadOwner() is now needed in the release builds too.
    
    Change-Id: I1a60bcbac4251866739fee59994a202394339015

diff --git a/net/Socket.hpp b/net/Socket.hpp
index 706c8ef2..3692bd10 100644
--- a/net/Socket.hpp
+++ b/net/Socket.hpp
@@ -183,16 +183,12 @@ public:
     /// Set the thread-id we're bound to
     void setThreadOwner(const std::thread::id &id)
     {
-#if ENABLE_DEBUG
         if (id != _owner)
         {
             LOG_DBG("#" << _fd << " Thread affinity set to 0x" << std::hex <<
                     id << " (was 0x" << _owner << ")." << std::dec);
             _owner = id;
         }
-#else
-       (void)id;
-#endif
     }
 
     /// Asserts in the debug builds, otherwise just logs.


More information about the Libreoffice-commits mailing list