[libc] Add implementations of pthread_equal and pthread_self.Reviewed By: michaelrj, lntueDifferential Revision: https://reviews.llvm.org/D129729
[libc][NFC] Remove the templatization from the linux implementation of thread.This enables setting up a single "self" thread object to be returned byAPI like thrd_self and pthread_self.
[libc] Add pthread_detach and thrd_detach.Tests for pthread_detach and thrd_detach have not been added. Instead, atest for the underlying implementation has been added as it makes use ofan intern
[libc] Add pthread_detach and thrd_detach.Tests for pthread_detach and thrd_detach have not been added. Instead, atest for the underlying implementation has been added as it makes use ofan internal wait method to synchronize with detached threads.Reviewed By: lntue, michaelrjDifferential Revision: https://reviews.llvm.org/D127479
show more ...
[libc] Add compile options to pthread_create target.The compile options now match that of thrd_create. Two compile optionsare of importance:1. -O3 - This is required so that stack is not used bet
[libc] Add compile options to pthread_create target.The compile options now match that of thrd_create. Two compile optionsare of importance:1. -O3 - This is required so that stack is not used between the clone syscall and the start function in the child thread.2. -fno-omit-frame-pointer - This is required so that we can sniff out the thread start args from the child thread's stack memory.Without these two options, pthread_create will exhibit flaky behavior.Reviewed By: lntue, michaelrjDifferential Revision: https://reviews.llvm.org/D127381
[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: lntueDifferential Re
[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: lntueDifferential Revision: https://reviews.llvm.org/D126718
[libc] Add the pthread_mutex_t type.Simple implementations of the functions pthread_mutex_init,pthread_mutex_destroy, pthread_mutex_lock and pthread_mutex_unlock havehave also been added. Future
[libc] Add the pthread_mutex_t type.Simple implementations of the functions pthread_mutex_init,pthread_mutex_destroy, pthread_mutex_lock and pthread_mutex_unlock havehave also been added. Future patches will extend these functions to addfeatures required by the POSIX specification.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D126235
[libc] Add a definition of pthread_attr_t and its getters and setters.Not all attributes have been added to phtread_attr_t in this patch. Theywill be added gradually in future patches.Reviewed B
[libc] Add a definition of pthread_attr_t and its getters and setters.Not all attributes have been added to phtread_attr_t in this patch. Theywill be added gradually in future patches.Reviewed By: lntueDifferential Revision: https://reviews.llvm.org/D123423
[libc] Add pthread_mutexattr_t type and its setters and getters.A simple implementation of the getters and setters has been added. Morelogic can be added to them in future as required.Reviewed B
[libc] Add pthread_mutexattr_t type and its setters and getters.A simple implementation of the getters and setters has been added. Morelogic can be added to them in future as required.Reviewed By: michaelrjDifferential Revision: https://reviews.llvm.org/D122969