[libc-commits] [PATCH] D127479: [libc] Add pthread_detach and thrd_detach.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Fri Jun 10 01:55:19 PDT 2022


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

Tests for pthread_detach and thrd_detach have not been added. Instead, a
test for the underlying implementation has been added as it makes use of
an internal wait method to synchronize with detached threads.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127479

Files:
  libc/config/linux/x86_64/entrypoints.txt
  libc/spec/posix.td
  libc/spec/stdc.td
  libc/src/__support/threads/CMakeLists.txt
  libc/src/__support/threads/linux/thread.h
  libc/src/__support/threads/thread_attrib.h
  libc/src/pthread/CMakeLists.txt
  libc/src/pthread/pthread_detach.cpp
  libc/src/pthread/pthread_detach.h
  libc/src/threads/CMakeLists.txt
  libc/src/threads/thrd_detach.cpp
  libc/src/threads/thrd_detach.h
  libc/test/src/__support/CMakeLists.txt
  libc/test/src/__support/threads/CMakeLists.txt
  libc/test/src/__support/threads/thread_detach_test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127479.435838.patch
Type: text/x-patch
Size: 16081 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220610/f784fee1/attachment.bin>


More information about the libc-commits mailing list