Threads: move linux m_timer to static thread_local variable
Allows lazy allocation of the timer handle.
This commit is contained in:
@@ -97,11 +97,6 @@ class thread_base
|
||||
using native_entry = void*(*)(void* arg);
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
// Linux thread timer
|
||||
int m_timer = -1;
|
||||
#endif
|
||||
|
||||
// Thread handle (platform-specific)
|
||||
atomic_t<std::uintptr_t> m_thread{0};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user