mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-25 21:40:33 +05:00
Apple-clang seems to support now the standard thread_local variables
This commit is contained in:
parent
d12372f27d
commit
d0864b9901
@ -35,11 +35,11 @@ namespace ngcore
|
|||||||
int TaskManager :: num_threads = 1;
|
int TaskManager :: num_threads = 1;
|
||||||
|
|
||||||
|
|
||||||
#ifndef __clang__
|
// #ifndef __clang__
|
||||||
thread_local int TaskManager :: thread_id = 0;
|
thread_local int TaskManager :: thread_id = 0;
|
||||||
#else
|
// #else
|
||||||
__thread int TaskManager :: thread_id;
|
// __thread int TaskManager :: thread_id;
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
const function<void(TaskInfo&)> * TaskManager::func;
|
const function<void(TaskInfo&)> * TaskManager::func;
|
||||||
const function<void()> * TaskManager::startup_function = nullptr;
|
const function<void()> * TaskManager::startup_function = nullptr;
|
||||||
|
@ -72,11 +72,11 @@ namespace ngcore
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __clang__
|
// #ifndef __clang__
|
||||||
static thread_local int thread_id;
|
static thread_local int thread_id;
|
||||||
#else
|
// #else
|
||||||
static __thread int thread_id;
|
// static __thread int thread_id;
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
NGCORE_API static bool use_paje_trace;
|
NGCORE_API static bool use_paje_trace;
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user