16 #ifndef dealii_thread_local_storage_h 17 # define dealii_thread_local_storage_h 20 # include <deal.II/base/config.h> 22 # ifdef DEAL_II_WITH_THREADS 23 # include <tbb/enumerable_thread_specific.h> 28 DEAL_II_NAMESPACE_OPEN
164 # ifdef DEAL_II_WITH_THREADS 165 tbb::enumerable_thread_specific<T> &
172 # ifdef DEAL_II_WITH_THREADS 178 tbb::enumerable_thread_specific<T>
data;
186 template <
typename T>
192 template <
typename T>
199 template <
typename T>
203 # ifdef DEAL_II_WITH_THREADS 211 template <
typename T>
215 # ifdef DEAL_II_WITH_THREADS 216 return data.local(exists);
224 template <
typename T>
231 template <
typename T>
240 template <
typename T>
242 # ifdef DEAL_II_WITH_THREADS 243 tbb::enumerable_thread_specific<T> &
254 template <
typename T>
258 # ifdef DEAL_II_WITH_THREADS 272 DEAL_II_NAMESPACE_CLOSE
A class that provides a separate storage location on each thread that accesses the object...
ThreadLocalStorage()=default
tbb::enumerable_thread_specific< T > & get_implementation()
tbb::enumerable_thread_specific< T > data
ThreadLocalStorage< T > & operator=(const T &t)