This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add pthread_create and pthread_join functions.
ClosedPublic

Authored by sivachandra on May 31 2022, 1:26 PM.

Details

Summary

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

Diff Detail

Event Timeline

sivachandra created this revision.May 31 2022, 1:26 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMay 31 2022, 1:26 PM
sivachandra requested review of this revision.May 31 2022, 1:26 PM
lntue accepted this revision.Jun 1 2022, 2:44 PM

Look like you'll need to rebase for the pre-merge build and tests.

libc/src/pthread/pthread_create.cpp
30

Will there be more cases to add here? Otherwise you can just combine them into a single if statement.

This revision is now accepted and ready to land.Jun 1 2022, 2:44 PM

Address comment.

sivachandra marked an inline comment as done.Jun 1 2022, 6:46 PM
This revision was landed with ongoing or failed builds.Jun 1 2022, 6:48 PM
This revision was automatically updated to reflect the committed changes.