[libcxx-commits] [PATCH] D96302: [SystemZ][ZOS] Fix __libcpp_thrad_isnull()
Zibi Sarbino via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Feb 12 12:21:27 PST 2021
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG48fcce1aea9e: [SystemZ][ZOS] Fix __libcpp_thrad_isnull() (authored by zibi).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D96302/new/
https://reviews.llvm.org/D96302
Files:
libcxx/include/__threading_support
Index: libcxx/include/__threading_support
===================================================================
--- libcxx/include/__threading_support
+++ libcxx/include/__threading_support
@@ -500,7 +500,7 @@
// Thread
bool __libcpp_thread_isnull(const __libcpp_thread_t *__t) {
- return *__t == __libcpp_thread_t();
+ return __libcpp_thread_get_id(__t) == 0;
}
int __libcpp_thread_create(__libcpp_thread_t *__t, void *(*__func)(void *),
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96302.323444.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210212/a3c76b24/attachment.bin>
More information about the libcxx-commits
mailing list