Fixing whitespace problems
llvm-svn: 111751
Cr-Mirrored-From: sso://chromium.googlesource.com/_direct/external/github.com/llvm/llvm-project
Cr-Mirrored-Commit: 940e211c87ceb6e43bf7a2bfd5df9783ad75ae6c
diff --git a/src/thread.cpp b/src/thread.cpp
index de53f78..9929765 100644
--- a/src/thread.cpp
+++ b/src/thread.cpp
@@ -27,7 +27,7 @@
#ifndef _LIBCPP_NO_EXCEPTIONS
if (ec)
throw system_error(error_code(ec, system_category()), "thread::join failed");
-#endif
+#endif // _LIBCPP_NO_EXCEPTIONS
__t_ = 0;
}
@@ -44,7 +44,7 @@
#ifndef _LIBCPP_NO_EXCEPTIONS
if (ec)
throw system_error(error_code(ec, system_category()), "thread::detach failed");
-#endif
+#endif // _LIBCPP_NO_EXCEPTIONS
}
unsigned
@@ -56,11 +56,11 @@
std::size_t s = sizeof(n);
sysctl(mib, 2, &n, &s, 0, 0);
return n;
-#else // !defined(CTL_HW && HW_NCPU)
+#else // defined(CTL_HW) && defined(HW_NCPU)
// TODO: grovel through /proc or check cpuid on x86 and similar
// instructions on other architectures.
return 0; // Means not computable [thread.thread.static]
-#endif
+#endif // defined(CTL_HW) && defined(HW_NCPU)
}
namespace this_thread