thread_local.h
Go to the documentation of this file.
1 #ifndef TTG_PARSEC_THREAD_LOCAL_H
2 #define TTG_PARSEC_THREAD_LOCAL_H
3 
4 namespace ttg_parsec {
5 
6 namespace detail {
7 
8  // fwd decls
9  struct parsec_ttg_task_base_t;
10  struct ttg_data_copy_t;
11 
12  inline thread_local parsec_ttg_task_base_t *parsec_ttg_caller = nullptr;
13 
15  static thread_local ttg_data_copy_t *ptr = nullptr;
16  return ptr;
17  }
18 
19 } // namespace detail
20 } // namespace ttg_parsec
21 
22 #endif // TTG_PARSEC_THREAD_LOCAL_H
ttg_data_copy_t *& ttg_data_copy_container()
Definition: thread_local.h:14
thread_local parsec_ttg_task_base_t * parsec_ttg_caller
Definition: thread_local.h:12
this contains PaRSEC-based TTG functionality
Definition: fwd.h:18