This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add implemementations of thread specific data related API.
ClosedPublic

Authored by sivachandra on Aug 10 2022, 10:18 PM.

Details

Summary

Specifically, POSIX functions pthread_key_create, pthread_key_delete,
pthread_setspecific and pthread_getspecific have been added. The C
standard equivalents tss_create, tss_delete, tss_set and tss_get have
also been added.

Diff Detail

Event Timeline

sivachandra created this revision.Aug 10 2022, 10:18 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 10 2022, 10:18 PM
sivachandra requested review of this revision.Aug 10 2022, 10:18 PM

This seems like a large patch, but the core is in just one file src/__support/threads/thread.cpp.

lntue accepted this revision.Aug 11 2022, 2:48 PM
This revision is now accepted and ready to land.Aug 11 2022, 2:48 PM