ThreadLocalDetail: OSX fixes
authorSteve O'Brien <steveo@fb.com>
Thu, 3 Dec 2015 03:13:22 +0000 (19:13 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Thu, 3 Dec 2015 04:20:19 +0000 (20:20 -0800)
commitfd4ce7d13aa50de6023102b06b2aaa5e9b7d720f
treee30b3f9204297bd9cdebc23976d2d44e950ed697
parent398f83735ae9c087774af4894a794510a1e375c0
ThreadLocalDetail: OSX fixes

Summary:
Change mutex to MicroSpinLock, for constexpr-ctor-ness on OSX.

Fixes this error seen on mac:

  ThreadLocalDetail.h:202:38: note: non-literal type 'std::mutex' cannot be used in a constant expression

Reviewed By: ldemailly

Differential Revision: D2713511

fb-gh-sync-id: bc1c34b4a0ee21347278aa368b408f286345e050
folly/detail/ThreadLocalDetail.h