diff options
author | Asiri Rathnayake <asiri.rathnayake@arm.com> | 2017-01-16 13:13:01 +0000 |
---|---|---|
committer | Asiri Rathnayake <asiri.rathnayake@arm.com> | 2017-01-16 13:13:01 +0000 |
commit | 52fe25053cd343b9eb8be5c2c88897e22dd6e797 (patch) | |
tree | 9130fddb8dc55caa5882dcf118a77889fdc64983 /libcxx/src | |
parent | e3d832a3e83f65bebaff6d894e75ebb3eee1c0d7 (diff) | |
download | bcm5719-llvm-52fe25053cd343b9eb8be5c2c88897e22dd6e797.tar.gz bcm5719-llvm-52fe25053cd343b9eb8be5c2c88897e22dd6e797.zip |
[libcxx] Follow-up to r292107
I've missed a couple of updates. NFC.
llvm-svn: 292109
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/thread.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcxx/src/thread.cpp b/libcxx/src/thread.cpp index 5ccf829fb86..c471b5c022e 100644 --- a/libcxx/src/thread.cpp +++ b/libcxx/src/thread.cpp @@ -40,7 +40,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD thread::~thread() { - if (__t_ != 0) + if (!__libcpp_thread_isnull(&__t_)) terminate(); } @@ -48,11 +48,11 @@ void thread::join() { int ec = EINVAL; - if (__t_ != 0) + if (!__libcpp_thread_isnull(&__t_)) { ec = __libcpp_thread_join(&__t_); if (ec == 0) - __t_ = 0; + __t_ = _LIBCPP_NULL_THREAD; } if (ec) @@ -63,11 +63,11 @@ void thread::detach() { int ec = EINVAL; - if (__t_ != 0) + if (!__libcpp_thread_isnull(&__t_)) { ec = __libcpp_thread_detach(&__t_); if (ec == 0) - __t_ = 0; + __t_ = _LIBCPP_NULL_THREAD; } if (ec) |