Page MenuHomePhabricator

Add thread annotations.
Needs ReviewPublic

Authored by aarongreen on Jan 12 2021, 9:41 AM.

Details

Summary

This change adds wrappers for std::unique_lock and std::recursive_lock and adds thread annotations so the code can be compiled with "-Wthread-safety -D_LIBCPP_ENABLE_THREAD_SAFETY_ANNOTATIONS".

See also https://clang.llvm.org/docs/ThreadSafetyAnalysis.html

Diff Detail

Event Timeline

aarongreen created this revision.Jan 12 2021, 9:41 AM
aarongreen requested review of this revision.Jan 12 2021, 9:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 12 2021, 9:41 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
aarongreen updated this revision to Diff 321777.Feb 5 2021, 8:42 AM