Consistently have the namespace closing comment
[folly.git] / folly / test / SmallLocksTest.cpp
index 1e71086f74f9bef4ed089cd74d4dc043ece3a881..32a20d77fa3cc54f31ac2ba6b4655e0c5f4381e9 100644 (file)
@@ -16,8 +16,6 @@
 
 #include <folly/SmallLocks.h>
 
-#include <pthread.h>
-
 #include <cassert>
 #include <condition_variable>
 #include <cstdio>
 #include <thread>
 #include <vector>
 
+#include <glog/logging.h>
+
 #include <folly/Random.h>
 #include <folly/portability/Asm.h>
 #include <folly/portability/GTest.h>
+#include <folly/portability/PThread.h>
 #include <folly/portability/Unistd.h>
 
 using folly::MSLGuard;
@@ -84,7 +85,7 @@ void splock_test() {
 }
 
 #ifdef FOLLY_PICO_SPIN_LOCK_H_
-template<class T> struct PslTest {
+template <class T> struct PslTest {
   PicoSpinLock<T> lock;
 
   PslTest() { lock.init(); }
@@ -103,7 +104,7 @@ template<class T> struct PslTest {
   }
 };
 
-template<class T>
+template <class T>
 void doPslTest() {
   PslTest<T> testObj;
 
@@ -134,7 +135,7 @@ struct TestClobber {
   MicroSpinLock lock_;
 };
 
-}
+} // namespace
 
 TEST(SmallLocks, SpinLockCorrectness) {
   EXPECT_EQ(sizeof(MicroSpinLock), 1);
@@ -215,7 +216,7 @@ struct SimpleBarrier {
   std::condition_variable cv_;
   bool ready_;
 };
-}
+} // namespace
 
 TEST(SmallLocks, MicroLock) {
   volatile uint64_t counters[4] = {0, 0, 0, 0};