summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-04-20 04:40:30 +0200
committerLioncash <mathew1800@gmail.com>2018-04-20 04:41:18 +0200
commitb134e6afcf2f19e6394b481536cff177915e0b4b (patch)
treeebf56b0690bcc1d98026e5a0b8428b8b18a417db
parentMerge pull request #356 from lioncash/shader (diff)
downloadyuzu-b134e6afcf2f19e6394b481536cff177915e0b4b.tar
yuzu-b134e6afcf2f19e6394b481536cff177915e0b4b.tar.gz
yuzu-b134e6afcf2f19e6394b481536cff177915e0b4b.tar.bz2
yuzu-b134e6afcf2f19e6394b481536cff177915e0b4b.tar.lz
yuzu-b134e6afcf2f19e6394b481536cff177915e0b4b.tar.xz
yuzu-b134e6afcf2f19e6394b481536cff177915e0b4b.tar.zst
yuzu-b134e6afcf2f19e6394b481536cff177915e0b4b.zip
-rw-r--r--src/common/thread.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/common/thread.h b/src/common/thread.h
index fa475ab51..9465e1de7 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -11,25 +11,6 @@
#include <thread>
#include "common/common_types.h"
-// Support for C++11's thread_local keyword was surprisingly spotty in compilers until very
-// recently. Fortunately, thread local variables have been well supported for compilers for a while,
-// but with semantics supporting only POD types, so we can use a few defines to get some amount of
-// backwards compat support.
-// WARNING: This only works correctly with POD types.
-#if defined(__clang__)
-#if !__has_feature(cxx_thread_local)
-#define thread_local __thread
-#endif
-#elif defined(__GNUC__)
-#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8)
-#define thread_local __thread
-#endif
-#elif defined(_MSC_VER)
-#if _MSC_VER < 1900
-#define thread_local __declspec(thread)
-#endif
-#endif
-
namespace Common {
int CurrentThreadId();