ttg 1.0.0
Template Task Graph (TTG): flowgraph-based programming model for high-performance distributed-memory algorithms
Loading...
Searching...
No Matches
thread_local.h
Go to the documentation of this file.
1// SPDX-License-Identifier: BSD-3-Clause
2#ifndef TTG_PARSEC_THREAD_LOCAL_H
3#define TTG_PARSEC_THREAD_LOCAL_H
4
5namespace ttg_parsec {
6
7namespace detail {
8
9 // fwd decls
10 struct parsec_ttg_task_base_t;
11 struct ttg_data_copy_t;
12
13 inline thread_local parsec_ttg_task_base_t *parsec_ttg_caller = nullptr;
14
16 static thread_local ttg_data_copy_t *ptr = nullptr;
17 return ptr;
18 }
19
20} // namespace detail
21} // namespace ttg_parsec
22
23#endif // TTG_PARSEC_THREAD_LOCAL_H
ttg_data_copy_t *& ttg_data_copy_container()
thread_local parsec_ttg_task_base_t * parsec_ttg_caller
this contains PaRSEC-based TTG functionality
Definition fwd.h:19