This is an archive of the discontinued LLVM Phabricator instance.

[libc][NFC] Add a platform independent thread support library.
ClosedPublic

Authored by sivachandra on Mar 2 2022, 1:02 AM.

Details

Summary

The idea is that, other parts of the libc which require thread/lock
support will be able to use this platform independent setup.

With this change, only the linux implementation of a mutex type has been
moved to the new library. Because of this, there is some duplication
between the new library and src/threads/linux. A follow up change will
move all of src/threads/linux to the new library. The duplication should
be eliminated with that move.

Diff Detail

Event Timeline

sivachandra created this revision.Mar 2 2022, 1:02 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 2 2022, 1:02 AM
sivachandra requested review of this revision.Mar 2 2022, 1:02 AM
lntue accepted this revision.Mar 3 2022, 10:25 AM
This revision is now accepted and ready to land.Mar 3 2022, 10:25 AM
libc/src/threads/linux/CndVar.h