This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add a linux Thread class in __support/threads.
ClosedPublic

Authored by sivachandra on Apr 7 2022, 12:42 AM.

Details

Summary

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.

Diff Detail

Event Timeline

sivachandra created this revision.Apr 7 2022, 12:42 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptApr 7 2022, 12:42 AM
sivachandra requested review of this revision.Apr 7 2022, 12:42 AM
lntue accepted this revision.Apr 7 2022, 6:38 AM
This revision is now accepted and ready to land.Apr 7 2022, 6:38 AM
This revision was automatically updated to reflect the committed changes.
libc/src/threads/linux/thrd_create.cpp