From 6ea459c5bdafd57225410d06578f4095e14c532b Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Wed, 24 Apr 2024 14:37:05 -0600 Subject: [PATCH] No longer rely on internals of ThreadLocalStorage in LogStream. --- source/base/logstream.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/base/logstream.cc b/source/base/logstream.cc index 3c0ba32edb..495cd0be3c 100644 --- a/source/base/logstream.cc +++ b/source/base/logstream.cc @@ -386,11 +386,11 @@ LogStream::get_prefixes() const // If this is a new locally stored stack, copy the "blessed" prefixes // from the initial thread that created logstream. - if (!exists) + if (exists == false) { - auto it = prefixes.data.find(parent_thread); - if (it != prefixes.data.end()) - local_prefixes = it->second; + const auto parent_prefixes = prefixes.get_for_thread(parent_thread); + if (parent_prefixes) + local_prefixes = parent_prefixes.value(); } return local_prefixes; -- 2.39.5