mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +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;
|
||||
|
||||
|
||||
#ifndef __clang__
|
||||
// #ifndef __clang__
|
||||
thread_local int TaskManager :: thread_id = 0;
|
||||
#else
|
||||
__thread int TaskManager :: thread_id;
|
||||
#endif
|
||||
// #else
|
||||
// __thread int TaskManager :: thread_id;
|
||||
// #endif
|
||||
|
||||
const function<void(TaskInfo&)> * TaskManager::func;
|
||||
const function<void()> * TaskManager::startup_function = nullptr;
|
||||
|
@ -72,11 +72,11 @@ namespace ngcore
|
||||
|
||||
|
||||
|
||||
#ifndef __clang__
|
||||
// #ifndef __clang__
|
||||
static thread_local int thread_id;
|
||||
#else
|
||||
static __thread int thread_id;
|
||||
#endif
|
||||
// #else
|
||||
// static __thread int thread_id;
|
||||
// #endif
|
||||
|
||||
NGCORE_API static bool use_paje_trace;
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user