[all-commits] [llvm/llvm-project] e6c89a: [SystemZ][ZOS] Fix the usage of pthread_t within l...

zibi2 via All-commits all-commits at lists.llvm.org
Sat Dec 5 09:51:17 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e6c89a499d91b5d50ac556428dac995d07f0f6e5
      https://github.com/llvm/llvm-project/commit/e6c89a499d91b5d50ac556428dac995d07f0f6e5
  Author: Zbigniew Sarbinowski <zibi at ca.ibm.com>
  Date:   2020-12-05 (Sat, 05 Dec 2020)

  Changed paths:
    M libcxx/include/__config
    M libcxx/include/__threading_support

  Log Message:
  -----------
  [SystemZ][ZOS] Fix the usage of pthread_t within libc++

This is the the minimal change introduced in [[ https://reviews.llvm.org/D88599 | D88599 ]]  to unblock the controversial change and discussion of proper separation between thread from thread id which will continue in D88599.

This patch will address the differences of definition of pthread_t on z/OS vs. Linux and other OS. Main trick to make the code work on z/OS relies on redefining libcpp_thread_id type and _LIBCPP_NULL_THREAD macro. This is necessary to separate initialization of libcxx_thread_id from the one of __libcxx_thread_t;

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D91875




More information about the All-commits mailing list