HomePhabricator

Replace LockAssertion with a proper thread safety annotations

Description

Replace LockAssertion with a proper thread safety annotations

Summary:
This is a backport of core#19979 [2/3]
https://github.com/bitcoin/bitcoin/pull/19979/commits/ab2a44297fd0796bf5797ae2a477e8e56d9c3c12

This partially revert D10161
Depends on D10171

Test Plan:
With TSAN:
ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Sep 19 2020, 08:56
PiRKCommitted on Sep 22 2021, 08:05
PiRKPushed on Sep 22 2021, 08:05
Reviewer
Restricted Project
Differential Revision
D10172: Replace LockAssertion with a proper thread safety annotations
Parents
rABCf417c6b56780: refactor: Use explicit function type instead of template
Branches
Unknown
Tags
Unknown
Reverts
D10161: Use LockAssertion utility class instead of AssertLockHeld()