Commit 3f274113 authored by Orvid King's avatar Orvid King Committed by facebook-github-bot-1

Switch a couple of uses of __thread to FOLLY_TLS

Summary: Because MSVC doesn't support `__thread`, and `FOLLY_TLS` is already setup to use the MSVC syntax when needed.
Closes #269

Reviewed By: @yfeldblum

Differential Revision: D2283919

Pulled By: @sgolemon
parent d6a6bb23
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
namespace folly { namespace fibers { namespace folly { namespace fibers {
__thread FiberManager* FiberManager::currentFiberManager_ = nullptr; FOLLY_TLS FiberManager* FiberManager::currentFiberManager_ = nullptr;
FiberManager::FiberManager(std::unique_ptr<LoopController> loopController, FiberManager::FiberManager(std::unique_ptr<LoopController> loopController,
Options options) : Options options) :
......
...@@ -307,7 +307,7 @@ class FiberManager : public ::folly::Executor { ...@@ -307,7 +307,7 @@ class FiberManager : public ::folly::Executor {
* When we are inside FiberManager loop this points to FiberManager. Otherwise * When we are inside FiberManager loop this points to FiberManager. Otherwise
* it's nullptr * it's nullptr
*/ */
static __thread FiberManager* currentFiberManager_; static FOLLY_TLS FiberManager* currentFiberManager_;
/** /**
* runInMainContext implementation for non-void functions. * runInMainContext implementation for non-void functions.
......
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