diff options
author | Howard Hinnant <hhinnant@apple.com> | 2010-08-11 17:04:31 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2010-08-11 17:04:31 +0000 |
commit | 54b409fdb9489b305bf95f4d4f52b49c7926c429 (patch) | |
tree | 4e1c893fe8a940ea767c4eef990dff879fcbbd25 /libcxx/src/thread.cpp | |
parent | 37aab7674a74dd0224b14976e91f89abe48e9ae9 (diff) | |
download | bcm5719-llvm-54b409fdb9489b305bf95f4d4f52b49c7926c429.tar.gz bcm5719-llvm-54b409fdb9489b305bf95f4d4f52b49c7926c429.zip |
now works with -fno-exceptions and -fno-rtti
llvm-svn: 110828
Diffstat (limited to 'libcxx/src/thread.cpp')
-rw-r--r-- | libcxx/src/thread.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp index f2db6d51b23..de53f78ef1f 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/src/thread.cpp @@ -24,8 +24,10 @@ void thread::join() { int ec = pthread_join(__t_, 0); +#ifndef _LIBCPP_NO_EXCEPTIONS if (ec) throw system_error(error_code(ec, system_category()), "thread::join failed"); +#endif __t_ = 0; } @@ -39,8 +41,10 @@ thread::detach() if (ec == 0) __t_ = 0; } +#ifndef _LIBCPP_NO_EXCEPTIONS if (ec) throw system_error(error_code(ec, system_category()), "thread::detach failed"); +#endif } unsigned |