[libc] Add pthread_create and pthread_join functions.
authorSiva Chandra Reddy <sivachandra@google.com>
Wed, 25 May 2022 21:07:23 +0000 (21:07 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 2 Jun 2022 01:47:24 +0000 (01:47 +0000)
commit70c8d12b79a58cf350256bb0a366f0e91000d82e
treee076e0ff80e260d56f4601944a9ce4f90fe82a04
parent93a375a15c8ad4226453b3ec920070b5be361656
[libc] Add pthread_create and pthread_join functions.

They do not yet support all the feature/attributes in pthread_attr_t.
Future changes will add such support.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D126718
17 files changed:
libc/config/linux/api.td
libc/config/linux/x86_64/entrypoints.txt
libc/include/CMakeLists.txt
libc/include/llvm-libc-types/CMakeLists.txt
libc/include/llvm-libc-types/__pthread_start_t.h [new file with mode: 0644]
libc/include/llvm-libc-types/__thread_type.h [new file with mode: 0644]
libc/include/llvm-libc-types/pthread_t.h [new file with mode: 0644]
libc/include/llvm-libc-types/thrd_t.h
libc/spec/posix.td
libc/src/pthread/CMakeLists.txt
libc/src/pthread/pthread_create.cpp [new file with mode: 0644]
libc/src/pthread/pthread_create.h [new file with mode: 0644]
libc/src/pthread/pthread_join.cpp [new file with mode: 0644]
libc/src/pthread/pthread_join.h [new file with mode: 0644]
libc/test/src/pthread/CMakeLists.txt
libc/test/src/pthread/pthread_mutex_test.cpp
libc/test/src/pthread/pthread_test.cpp [new file with mode: 0644]