fix the manual config and flipped condition in SpinLock.h
[folly.git] / folly / SpinLock.h
index 2e2356c938e76f9fb45ab50f06ea8618a4586e45..3b5aa44f1f5117b1f57a0fc99587dd8d4c2a3d24 100644 (file)
@@ -25,9 +25,9 @@ typedef SpinLockMslImpl SpinLock;
 #elif __APPLE__
 typedef SpinLockAppleImpl SpinLock;
 #elif FOLLY_HAVE_PTHREAD_SPINLOCK_T
-typedef SpinLockPthreadMutexImpl SpinLock;
-#else
 typedef SpinLockPthreadImpl SpinLock;
+#else
+typedef SpinLockPthreadMutexImpl SpinLock;
 #endif
 
 template <typename LOCK>