You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentaton for SPDLOG_NO_THREAD_ID in tweakme.h says
///////////////////////////////////////////////////////////////////////////////// Uncomment if thread id logging is not needed (i.e. no %t in the log pattern).// This will prevent spdlog from querying the thread id on each log call.//// WARNING: If the log pattern contains thread id (i.e, %t) while this flag is// on, the result is undefined.
However, as currently implemented, it will always have well-defined result, the thread-id will be written as 0. This is because the flag only removes code initializing the log_msg::thread_id variable to specific value, which means that it will always be initialized to 0, which is its in-class initializer.
The text was updated successfully, but these errors were encountered:
The documentaton for
SPDLOG_NO_THREAD_ID
intweakme.h
saysHowever, as currently implemented, it will always have well-defined result, the thread-id will be written as 0. This is because the flag only removes code initializing the
log_msg::thread_id
variable to specific value, which means that it will always be initialized to0
, which is its in-class initializer.The text was updated successfully, but these errors were encountered: