[all-commits] [llvm/llvm-project] 2ce09e: [libc] Add a linux Thread class in __support/threads.

Siva Chandra via All-commits all-commits at lists.llvm.org
Thu Apr 7 09:13:42 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ce09e680a7dc1201463ae74e199eac66ac52a8d
      https://github.com/llvm/llvm-project/commit/2ce09e680a7dc1201463ae74e199eac66ac52a8d
  Author: Siva Chandra Reddy <sivachandra at google.com>
  Date:   2022-04-07 (Thu, 07 Apr 2022)

  Changed paths:
    M libc/include/llvm-libc-types/thrd_t.h
    M libc/src/__support/CPP/CMakeLists.txt
    A libc/src/__support/CPP/error.h
    M libc/src/__support/threads/CMakeLists.txt
    M libc/src/__support/threads/linux/CMakeLists.txt
    A libc/src/__support/threads/linux/futex_word.h
    M libc/src/__support/threads/linux/mutex.h
    A libc/src/__support/threads/linux/thread.h
    A libc/src/__support/threads/thread.h
    A libc/src/__support/threads/thread_attrib.h
    M libc/src/threads/CMakeLists.txt
    M libc/src/threads/linux/CMakeLists.txt
    M libc/src/threads/linux/CndVar.h
    R libc/src/threads/linux/Thread.h
    R libc/src/threads/linux/thrd_create.cpp
    R libc/src/threads/linux/thrd_join.cpp
    A libc/src/threads/thrd_create.cpp
    M libc/src/threads/thrd_create.h
    A libc/src/threads/thrd_join.cpp

  Log Message:
  -----------
  [libc] Add a linux Thread class in __support/threads.

This change is essentially a mechanical change which moves the thread
creation and join implementations from src/threads/linux to
src/__support/threads/linux/thread.h. The idea being that, in future, a
pthread implementation can reuse the common thread implementations in
src/__support/threads.

Reviewed By: lntue

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




More information about the All-commits mailing list