[all-commits] [llvm/llvm-project] ad89cf: [libc] Keep all thread state information separate ...

Siva Chandra via All-commits all-commits at lists.llvm.org
Wed Jun 1 10:37:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ad89cf4e2d1ec47db094f33a436d6b7eab090a02
      https://github.com/llvm/llvm-project/commit/ad89cf4e2d1ec47db094f33a436d6b7eab090a02
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-06-01 (Wed, 01 Jun 2022)

  Changed paths:
    M libc/include/llvm-libc-types/thrd_t.h
    M libc/src/__support/threads/linux/thread.h
    M libc/src/__support/threads/thread_attrib.h
    M libc/src/threads/thrd_join.cpp

  Log Message:
  -----------
  [libc] Keep all thread state information separate from the thread structure.

The state is now stored on the thread's stack memory. This enables
implementing pthread API like pthread_detach which takes the pthread_t
structure argument by value.

Reviewed By: lntue

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




More information about the All-commits mailing list