summaryrefslogtreecommitdiff
path: root/libc/src/threads/linux/Thread.h
AgeCommit message (Collapse)Author
2022-04-07[libc] Add a linux Thread class in __support/threads.Siva Chandra Reddy
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
2022-03-31[libc] Enable threads.h functions on aarch64.Siva Chandra
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D122788
2022-03-01[libc] Remove the remaining uses of stdatomic.h.Siva Chandra Reddy
New methods to the Atomic class have been added as required. Futex related types have been consolidated at a common place. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D120705
2021-12-07[libc] apply new lint rulesMichael Jones
This patch applies the lint rules described in the previous patch. There was also a significant amount of effort put into manually fixing things, since all of the templated functions, or structs defined in /spec, were not updated and had to be handled manually. Reviewed By: sivachandra, lntue Differential Revision: https://reviews.llvm.org/D114302
2021-08-26[libc][NFC] Move the mutex implementation into a utility class.Siva Chandra Reddy
This allows others parts of the libc to use the mutex types without actually pulling in public function implementations. Along the way, few cleanups have been done, like using a uniform type to refer the linux futex word. Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D108749