-
- Downloads
[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
Showing
- libc/include/llvm-libc-types/thrd_t.h 7 additions, 4 deletionslibc/include/llvm-libc-types/thrd_t.h
- libc/src/__support/CPP/CMakeLists.txt 6 additions, 0 deletionslibc/src/__support/CPP/CMakeLists.txt
- libc/src/__support/CPP/error.h 51 additions, 0 deletionslibc/src/__support/CPP/error.h
- libc/src/__support/threads/CMakeLists.txt 16 additions, 0 deletionslibc/src/__support/threads/CMakeLists.txt
- libc/src/__support/threads/linux/CMakeLists.txt 19 additions, 0 deletionslibc/src/__support/threads/linux/CMakeLists.txt
- libc/src/__support/threads/linux/futex_word.h 24 additions, 0 deletionslibc/src/__support/threads/linux/futex_word.h
- libc/src/__support/threads/linux/mutex.h 1 addition, 2 deletionslibc/src/__support/threads/linux/mutex.h
- libc/src/__support/threads/linux/thread.h 206 additions, 0 deletionslibc/src/__support/threads/linux/thread.h
- libc/src/__support/threads/thread.h 47 additions, 0 deletionslibc/src/__support/threads/thread.h
- libc/src/__support/threads/thread_attrib.h 29 additions, 0 deletionslibc/src/__support/threads/thread_attrib.h
- libc/src/threads/CMakeLists.txt 16 additions, 4 deletionslibc/src/threads/CMakeLists.txt
- libc/src/threads/linux/CMakeLists.txt 1 addition, 36 deletionslibc/src/threads/linux/CMakeLists.txt
- libc/src/threads/linux/CndVar.h 2 additions, 1 deletionlibc/src/threads/linux/CndVar.h
- libc/src/threads/linux/thrd_create.cpp 0 additions, 153 deletionslibc/src/threads/linux/thrd_create.cpp
- libc/src/threads/thrd_create.cpp 33 additions, 0 deletionslibc/src/threads/thrd_create.cpp
- libc/src/threads/thrd_create.h 1 addition, 1 deletionlibc/src/threads/thrd_create.h
- libc/src/threads/thrd_join.cpp 30 additions, 0 deletionslibc/src/threads/thrd_join.cpp
Loading
Please register or sign in to comment