Futex::futexWait returns FutexResult
[folly.git] / folly / test / SingletonThreadLocalTest.cpp
index 4301147177e7d343b098e0963df855ebd69ec1f4..8397bb88e2c0f0cb7b31ca437e6fcee23a528dde 100644 (file)
@@ -37,10 +37,10 @@ struct Foo {
 };
 using FooSingletonTL = SingletonThreadLocal<Foo>;
 FooSingletonTL theFooSingleton;
-}
+} // namespace
 
 TEST(SingletonThreadLocalTest, OneSingletonPerThread) {
-  const std::size_t targetThreadCount{64};
+  static constexpr std::size_t targetThreadCount{64};
   std::atomic<std::size_t> completedThreadCount{0};
   Synchronized<std::unordered_set<Foo*>> fooAddresses{};
   std::vector<std::thread> threads{};