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