[libc-commits] [PATCH] D126716: [libc] Keep all thread state information separate from the thread structure.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Tue May 31 12:05:08 PDT 2022


sivachandra created this revision.
sivachandra added reviewers: lntue, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126716

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126716.433162.patch
Type: text/x-patch
Size: 9177 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220531/b1befd72/attachment.bin>


More information about the libc-commits mailing list