[libc-commits] [PATCH] D120795: [libc][NFC] Add a platform independent thread support library.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Wed Mar 2 01:02:39 PST 2022
sivachandra created this revision.
sivachandra added a reviewer: lntue.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added projects: libc-project, All.
sivachandra requested review of this revision.
The idea is that, other parts of the libc which require thread/lock
support will be able to use this platform independent setup.
With this change, only the linux implementation of a mutex type has been
moved to the new library. Because of this, there is some duplication
between the new library and src/threads/linux. A follow up change will
move all of src/threads/linux to the new library. The duplication should
be eliminated with that move.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120795
Files:
libc/include/llvm-libc-types/CMakeLists.txt
libc/include/llvm-libc-types/__mutex_type.h
libc/include/llvm-libc-types/mtx_t.h
libc/src/__support/CMakeLists.txt
libc/src/__support/threads/CMakeLists.txt
libc/src/__support/threads/linux/CMakeLists.txt
libc/src/__support/threads/linux/mutex.h
libc/src/__support/threads/mutex.h
libc/src/threads/CMakeLists.txt
libc/src/threads/linux/CMakeLists.txt
libc/src/threads/linux/CndVar.h
libc/src/threads/linux/Mutex.h
libc/src/threads/linux/cnd_wait.cpp
libc/src/threads/linux/mtx_destroy.cpp
libc/src/threads/linux/mtx_init.cpp
libc/src/threads/linux/mtx_lock.cpp
libc/src/threads/linux/mtx_unlock.cpp
libc/src/threads/mtx_destroy.cpp
libc/src/threads/mtx_init.cpp
libc/src/threads/mtx_lock.cpp
libc/src/threads/mtx_unlock.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120795.412343.patch
Type: text/x-patch
Size: 23018 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220302/7848520b/attachment-0001.bin>
More information about the libc-commits
mailing list