diff options
author | Howard Hinnant <hhinnant@apple.com> | 2010-08-22 00:03:27 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2010-08-22 00:03:27 +0000 |
commit | 940e211c87ceb6e43bf7a2bfd5df9783ad75ae6c (patch) | |
tree | 43c7c28a8644d312e1618bf0c2a7251f8fb9d2f6 /libcxx/src/thread.cpp | |
parent | b3371f6f4909a1e2034c69011d0baa1a39b21d48 (diff) | |
download | bcm5719-llvm-940e211c87ceb6e43bf7a2bfd5df9783ad75ae6c.tar.gz bcm5719-llvm-940e211c87ceb6e43bf7a2bfd5df9783ad75ae6c.zip |
Fixing whitespace problems
llvm-svn: 111751
Diffstat (limited to 'libcxx/src/thread.cpp')
-rw-r--r-- | libcxx/src/thread.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp index de53f78ef1f..992976500e5 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/src/thread.cpp @@ -27,7 +27,7 @@ thread::join() #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 @@ thread::detach() #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 @@ thread::hardware_concurrency() 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 |