From: Daniel Arndt Date: Fri, 1 Sep 2017 13:05:46 +0000 (+0200) Subject: Clear data in ThreadLocalStorage also when not using threads X-Git-Tag: v9.0.0-rc1~1135^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5007%2Fhead;p=dealii.git Clear data in ThreadLocalStorage also when not using threads --- diff --git a/include/deal.II/base/thread_local_storage.h b/include/deal.II/base/thread_local_storage.h index a610439e4c..00b7f896fa 100644 --- a/include/deal.II/base/thread_local_storage.h +++ b/include/deal.II/base/thread_local_storage.h @@ -267,6 +267,8 @@ namespace Threads { #ifdef DEAL_II_WITH_THREADS data.clear (); +#else + data = T {}; #endif } } // end of implementation of namespace Threads