[all-commits] [llvm/llvm-project] 4d2576: [libc] move fork into threads folder

michaelrj-google via All-commits all-commits at lists.llvm.org
Fri Nov 11 16:01:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d25761b076d19c237890ad7b7331d01bd3a84b6
      https://github.com/llvm/llvm-project/commit/4d25761b076d19c237890ad7b7331d01bd3a84b6
  Author: Michael Jones <michaelrj at google.com>
  Date:   2022-11-11 (Fri, 11 Nov 2022)

  Changed paths:
    M libc/src/__support/CMakeLists.txt
    R libc/src/__support/fork_callbacks.cpp
    R libc/src/__support/fork_callbacks.h
    M libc/src/__support/threads/CMakeLists.txt
    A libc/src/__support/threads/fork_callbacks.cpp
    A libc/src/__support/threads/fork_callbacks.h
    M libc/src/pthread/CMakeLists.txt
    M libc/src/pthread/pthread_atfork.cpp
    M libc/src/unistd/linux/CMakeLists.txt
    M libc/src/unistd/linux/fork.cpp

  Log Message:
  -----------
  [libc] move fork into threads folder

Fork, as a thread function, should go in the threads folder.
Additionally, it depends on the thread mutex, and it was causing build
issues for targets where we don't support threads.

Reviewed By: lntue

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




More information about the All-commits mailing list