HomePhabricator

Lock before checking if orphan_work_set is empty; indicate it is guarded

Description

Lock before checking if orphan_work_set is empty; indicate it is guarded

Summary:
This is a backport of core#19911 [3/6]
https://github.com/bitcoin/bitcoin/pull/19911/commits/673247b58cd1252ab7e99f7d63ead05cc100cef2

Depends on D10527

Test Plan:

cmake .. -GNinja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DENABLE_SANITIZERS=thread
ninja && ninja check check-functional

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Neha Narula <narula@gmail.com>Authored on Sep 13 2020, 23:34
PiRKCommitted on Nov 25 2021, 15:25
PiRKPushed on Nov 25 2021, 15:25
Reviewer
Restricted Project
Differential Revision
D10528: Lock before checking if orphan_work_set is empty; indicate it is guarded
Parents
rABCcc175463abd9: Move m_orphan_work_set to net_processing
Branches
Unknown
Tags
Unknown