libreoffice-online/common
Ashod Nakashian 054ab5f61f wsd: specialize thread ID serialization
On non-Linux systems we should default to std:🧵:id
which needs to be serialized using ostream interface.

While Util::getThreadId does specialize for Linux, the
code using it doesn't always handle the different return
types.

While std:🧵:id is the standard interface to the
thread ID, using such abstraction has proven to be costly
when converting the thread ID on each and every log via
ostringstream (due to the cost of memory allocation).
In practice Linux is the primary and so far only platform,
so the getThreadId is optimized for it. Other systems
can either use the default std:🧵:id, or can also
specialize as necessary.

Change-Id: I91cf279a8fdff12636a534957db5069dee51bd65
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
2020-11-21 19:49:46 -05:00
..
Authorization.cpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
Authorization.hpp fix license headers 2020-10-01 11:56:43 +02:00
Clipboard.hpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
Common.hpp fix license headers 2020-10-01 11:56:43 +02:00
Crypto.cpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
Crypto.hpp fix license headers 2020-10-01 11:56:43 +02:00
FileUtil.cpp Replace all __linux in CPP conditions with __linux__. 2020-11-17 09:21:45 +00:00
FileUtil.hpp wsd: improved Stat modified-time and unit-tests 2020-11-15 13:50:16 -05:00
JailUtil.cpp Replace all __linux in CPP conditions with __linux__. 2020-11-17 09:21:45 +00:00
JailUtil.hpp fix license headers 2020-10-01 11:56:43 +02:00
JsonUtil.hpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
Log.cpp wsd: specialize thread ID serialization 2020-11-21 19:49:46 -05:00
Log.hpp fix license headers 2020-10-01 11:56:43 +02:00
LOOLWebSocket.hpp fix license headers 2020-10-01 11:56:43 +02:00
Message.hpp fix license headers 2020-10-01 11:56:43 +02:00
MessageQueue.cpp fix license headers 2020-10-01 11:56:43 +02:00
MessageQueue.hpp fix license headers 2020-10-01 11:56:43 +02:00
MobileApp.cpp fix license headers 2020-10-01 11:56:43 +02:00
MobileApp.hpp fix license headers 2020-10-01 11:56:43 +02:00
Png.hpp fix license headers 2020-10-01 11:56:43 +02:00
Protocol.cpp fix license headers 2020-10-01 11:56:43 +02:00
Protocol.hpp fix license headers 2020-10-01 11:56:43 +02:00
Rectangle.hpp fix license headers 2020-10-01 11:56:43 +02:00
RenderTiles.hpp fix license headers 2020-10-01 11:56:43 +02:00
Seccomp.cpp Replace all __linux in CPP conditions with __linux__. 2020-11-17 09:21:45 +00:00
Seccomp.hpp fix license headers 2020-10-01 11:56:43 +02:00
security.h fix license headers 2020-10-01 11:56:43 +02:00
Session.cpp Make AutoSpellChecking option state remembered on first start 2020-11-17 14:55:31 +03:00
Session.hpp wsd: const correctness and string ctor instead of literal 2020-11-19 10:12:38 +00:00
SigUtil.cpp fix license headers 2020-10-01 11:56:43 +02:00
SigUtil.hpp fix license headers 2020-10-01 11:56:43 +02:00
SpookyV2.cpp
SpookyV2.h Use #pragma once 2020-04-18 15:00:18 +02:00
StringVector.cpp fix license headers 2020-10-01 11:56:43 +02:00
StringVector.hpp Fix typos 2020-10-07 12:51:08 +02:00
Unit.cpp fix license headers 2020-10-01 11:56:43 +02:00
Unit.hpp wsd: avoid the using keyword and use C++ size_t 2020-11-15 15:41:41 -05:00
UnitHTTP.hpp fix license headers 2020-10-01 11:56:43 +02:00
Util.cpp Replace all __linux in CPP conditions with __linux__. 2020-11-17 09:21:45 +00:00
Util.hpp wsd: specialize thread ID serialization 2020-11-21 19:49:46 -05:00