HomePhabricator

locking: teach Clang's -Wthread-safety to cope with our scoped lock macros
cd27bba060d9Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

locking: teach Clang's -Wthread-safety to cope with our scoped lock macros

This allows us to use function/variable/class attributes to specify locking
requisites, allowing problems to be detected during static analysis.

This works perfectly with newer Clang versions (tested with 3.3-3.7). For older
versions (tested 3.2), it compiles fine but spews lots of false-positives.

Details

Provenance
Cory Fields <cory-nospam-@coryfields.com>Authored on Jun 16 2015, 07:46
deadalnixPushed on May 14 2017, 22:04
Parents
rABCc1fb0e1075f6: Merge pull request #6274
Branches
Unknown
Tags
Unknown

Event Timeline

Cory Fields <cory-nospam-@coryfields.com> committed rABCcd27bba060d9: locking: teach Clang's -Wthread-safety to cope with our scoped lock macros (authored by Cory Fields <cory-nospam-@coryfields.com>).Jun 16 2015, 07:59