From: Wolfgang Bangerth Date: Wed, 24 Apr 2024 20:37:05 +0000 (-0600) Subject: No longer rely on internals of ThreadLocalStorage in LogStream. X-Git-Tag: v9.6.0-rc1~340^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ea459c5bdafd57225410d06578f4095e14c532b;p=dealii.git No longer rely on internals of ThreadLocalStorage in LogStream. --- 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;