Commit 5fe62e13 authored by Kenton Varda's avatar Kenton Varda

Use __thread rather than thread_local.

parent 5a917171
...@@ -37,11 +37,7 @@ namespace kj { ...@@ -37,11 +37,7 @@ namespace kj {
namespace { namespace {
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) static __thread EventLoop* threadLocalEventLoop = nullptr;
#define thread_local __thread
#endif
thread_local EventLoop* threadLocalEventLoop = nullptr;
#define _kJ_ALREADY_READY reinterpret_cast< ::kj::EventLoop::Event*>(1) #define _kJ_ALREADY_READY reinterpret_cast< ::kj::EventLoop::Event*>(1)
......
...@@ -247,11 +247,7 @@ const char* ExceptionImpl::what() const noexcept { ...@@ -247,11 +247,7 @@ const char* ExceptionImpl::what() const noexcept {
namespace { namespace {
#if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 8) static __thread ExceptionCallback* threadLocalCallback = nullptr;
#define thread_local __thread
#endif
thread_local ExceptionCallback* threadLocalCallback = nullptr;
} // namespace } // namespace
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment