HomePhabricator

scripted-diff: rename and de-globalise g_cs_orphans

Description

scripted-diff: rename and de-globalise g_cs_orphans

Summary:

-BEGIN VERIFY SCRIPT-
sed -i -e 's/static RecursiveMutex/mutable Mutex/' src/txorphanage.h
sed -i -e '/RecursiveMutex/d' src/txorphanage.cpp
sed -i -e 's/g_cs_orphans/m_mutex/g' $(git grep -l g_cs_orphans src/)
-END VERIFY SCRIPT-

Completes backport of core#26295:
https://github.com/bitcoin/bitcoin/pull/26295/commits/7082ce3e88d77456d60a5a66bd38807fbd66f311

Depends on D16234.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Provenance
Anthony Towns <aj@erisian.com.au>Authored on Oct 7 2022, 04:32
FabienCommitted on May 29 2024, 11:46
FabienPushed on May 29 2024, 11:46
Reviewer
Restricted Project
Differential Revision
D16235: scripted-diff: rename and de-globalise g_cs_orphans
Parents
rABCb7e5c1f297f1: Move all g_cs_orphans locking to txorphanage
Branches
Unknown
Tags
Unknown