[all-commits] [llvm/llvm-project] 5db417: [libc] Add pthread_detach and thrd_detach.

Siva Chandra via All-commits all-commits at lists.llvm.org
Fri Jun 10 22:30:02 PDT 2022


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

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

  Log Message:
  -----------
  [libc] Add pthread_detach and thrd_detach.

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.

Reviewed By: lntue, michaelrj

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




More information about the All-commits mailing list