[libcxx-commits] [PATCH] D96302: Previous pthread revision https://reviews.llvm.org/D91875 missed a small change for `__libcpp_thrad_isnull()` required for z/OS.
Zibi Sarbino via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 8 16:23:42 PST 2021
zibi created this revision.
zibi requested review of this revision.
Herald added a project: libc++.
Herald added a reviewer: libc++.
Fix __libcpp_thrad_isnull()
Repository:
rG LLVM Github Monorepo
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.322237.patch
Type: text/x-patch
Size: 447 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210209/9211005b/attachment.bin>
More information about the libcxx-commits
mailing list