HomePhabricator

doc: Add best practice for annotating/asserting locks

Description

doc: Add best practice for annotating/asserting locks

Summary:
Backport note: I removed the paragraph about LockAssertion, because the code example causes a false positive linter error, and this paragraph would anyway get removed anyway in a few commits (D10173)

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

Test Plan: proofreading

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on Aug 8 2020, 09:56
PiRKCommitted on Sep 22 2021, 08:05
PiRKPushed on Sep 22 2021, 08:05
Reviewer
Restricted Project
Differential Revision
D10165: doc: Add best practice for annotating/asserting locks
Parents
rABC9c6e807163ad: sync.h: Make runtime lock checks require compile-time lock checks
Branches
Unknown
Tags
Unknown