This is an archive of the discontinued LLVM Phabricator instance.

[NFC][lsan] Add GetCurrentThreadId wrapper for GetCurrentThread
ClosedPublic

Authored by vitalybuka on Apr 14 2023, 4:24 PM.

Details

Summary

D148281 will change return type of GetCurrentThread(), so it will
return ThreadContext instead of id.

Diff Detail

Event Timeline

vitalybuka created this revision.Apr 14 2023, 4:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 4:24 PM
vitalybuka requested review of this revision.Apr 14 2023, 4:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 14 2023, 4:24 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript

I am going to change return type of GetCurrentThreadId() in the next patch.

Add more context what the inline u32 GetCurrentThreadId() { return GetCurrentThread(); } forwarder does?

vitalybuka edited the summary of this revision. (Show Details)Apr 14 2023, 5:14 PM

I am going to change return type of GetCurrentThreadId() in the next patch.

Add more context what the inline u32 GetCurrentThreadId() { return GetCurrentThread(); } forwarder does?

Done

vitalybuka edited the summary of this revision. (Show Details)Apr 14 2023, 5:16 PM
MaskRay accepted this revision.Apr 14 2023, 5:17 PM
This revision is now accepted and ready to land.Apr 14 2023, 5:17 PM
This revision was landed with ongoing or failed builds.Apr 14 2023, 11:03 PM
This revision was automatically updated to reflect the committed changes.