From 387c5086e6402696d5adbe18cac0c679dffd41a8 Mon Sep 17 00:00:00 2001 From: xicilion Date: Mon, 9 Jan 2023 01:54:09 +0800 Subject: [PATCH] exlib, refactor: change to thread_local. --- exlib/src/thread.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/exlib/src/thread.cpp b/exlib/src/thread.cpp index 64e11c450..9e1381ecf 100644 --- a/exlib/src/thread.cpp +++ b/exlib/src/thread.cpp @@ -22,11 +22,7 @@ namespace exlib { -#if defined(_MSC_VER) -__declspec(thread) void* th_current; -#else -__thread void* th_current; -#endif +thread_local void* th_current; void* OSThread::Entry(void* arg) {