[libc-commits] [PATCH] D123287: [libc] Add a linux Thread class in __support/threads.

Siva Chandra via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu Apr 7 00:42:18 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.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D123287

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123287.421114.patch
Type: text/x-patch
Size: 33644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220407/ebe9c09e/attachment-0001.bin>


More information about the libc-commits mailing list