Skip to content

Commit

Permalink
[SystemZ][ZOS] Fix __libcpp_thrad_isnull()
Browse files Browse the repository at this point in the history
Previous pthread revision https://reviews.llvm.org/D91875 missed a small change for `__libcpp_thrad_isnull()` required for z/OS.

Reviewed By: zibi

Differential Revision: https://reviews.llvm.org/D96302
  • Loading branch information
zibi2 committed Feb 12, 2021
1 parent 6280bb4 commit 48fcce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcxx/include/__threading_support
Expand Up @@ -500,7 +500,7 @@ bool __libcpp_thread_id_less(__libcpp_thread_id t1, __libcpp_thread_id t2)

// 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 *),
Expand Down

0 comments on commit 48fcce1

Please sign in to comment.