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
110 T &
get (
bool &exists);
160 #ifdef DEAL_II_WITH_THREADS 161 tbb::enumerable_thread_specific<T> &
168 #ifdef DEAL_II_WITH_THREADS 174 tbb::enumerable_thread_specific<T>
data;
182 template <
typename T>
190 template <
typename T>
198 template <
typename T>
203 #ifdef DEAL_II_WITH_THREADS 211 template <
typename T>
216 #ifdef DEAL_II_WITH_THREADS 217 return data.local(exists);
225 template <
typename T>
233 template <
typename T>
235 ThreadLocalStorage<T> &
243 template <
typename T>
245 #ifdef DEAL_II_WITH_THREADS 246 tbb::enumerable_thread_specific<T> &
257 template <
typename T>
262 #ifdef DEAL_II_WITH_THREADS 276 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)