HomePhabricator

Add missed thread safety annotations

Description

Add missed thread safety annotations

Summary:
This is needed for upcoming commit "sync.h: Make runtime lock checks
require compile-time lock checks" to pass.

This is a backport of core#19668 [2/5]
https://github.com/bitcoin/bitcoin/pull/19668/commits/3ddc150857178bfb1c854c05bf9b526777876f56

Depends on D10161

Test Plan:
With TSAN:
ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10162

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Aug 5 2020, 12:00
PiRKCommitted on Sep 22 2021, 08:05
PiRKPushed on Sep 22 2021, 08:05
Reviewer
Restricted Project
Differential Revision
D10162: Add missed thread safety annotations
Parents
rABC8ea2e27baa24: Use LockAssertion utility class instead of AssertLockHeld()
Branches
Unknown
Tags
Unknown

Event Timeline

PiRK committed rABC83cdc4fe2fc5: Add missed thread safety annotations (authored by Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>).Sep 22 2021, 08:05