[libc-commits] [PATCH] D120642: [libc] Add a class "Atomic" as a simple equivalent of std::atomic.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Sun Feb 27 20:28:08 PST 2022
sivachandra created this revision.
sivachandra added reviewers: abrachet, lntue, michaelrj.
Herald added subscribers: libc-commits, ecnelises, tschuett, mgorny.
Herald added a project: libc-project.
sivachandra requested review of this revision.
Only the methods currently required by the libc have been added.
Most of the existing uses of atomic operations have been switched over
to this new class. A future change will clean up the rest of uses.
This change now allows building mutex and condition variable code with a
C++ compiler which does not have stdatomic.h, for example g++.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D120642
Files:
libc/include/__llvm-libc-common.h
libc/include/llvm-libc-types/cnd_t.h
libc/include/llvm-libc-types/mtx_t.h
libc/src/__support/CPP/CMakeLists.txt
libc/src/__support/CPP/atomic.h
libc/src/threads/linux/CMakeLists.txt
libc/src/threads/linux/CndVar.h
libc/src/threads/linux/Mutex.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120642.411731.patch
Type: text/x-patch
Size: 11819 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220228/57abcdff/attachment.bin>
More information about the libc-commits
mailing list