17 #ifndef __deal2__thread_local_storage_h
18 #define __deal2__thread_local_storage_h
21 #include <deal.II/base/config.h>
23 #ifdef DEAL_II_WITH_THREADS
24 # include <tbb/enumerable_thread_specific.h>
110 T &
get (
bool &exists);
137 #ifdef DEAL_II_WITH_THREADS
138 tbb::enumerable_thread_specific<T> &
148 #ifdef DEAL_II_WITH_THREADS
155 tbb::enumerable_thread_specific<T>
data;
163 template <
typename T>
169 template <
typename T>
177 template <
typename T>
185 template <
typename T>
190 #ifdef DEAL_II_WITH_THREADS
198 template <
typename T>
203 #ifdef DEAL_II_WITH_THREADS
204 return data.local(exists);
212 template <
typename T>
220 template <
typename T>
236 DEAL_II_NAMESPACE_CLOSE
A class that provides a separate storage location on each thread that accesses the object...
tbb::enumerable_thread_specific< T > & get_implementation()
tbb::enumerable_thread_specific< T > data
ThreadLocalStorage< T > & operator=(const T &t)