HomePhabricator

Replace RecursiveMutex cs_addrLocal with Mutex, and rename it

Description

Replace RecursiveMutex cs_addrLocal with Mutex, and rename it

Summary:

scripted-diff: rename cs_addrLocal -> m_addr_local_mutex

-BEGIN VERIFY SCRIPT-
sed -i 's/cs_addrLocal/m_addr_local_mutex/g' -- $(git grep --files-with-matches 'cs_addrLocal')
-END VERIFY SCRIPT-

p2p: add assertions and negative TS annotations for m_addr_local_mutex

refactor: replace RecursiveMutex m_addr_local_mutex with Mutex

This is a backport of core#24108

Test Plan:
with clang debug and tsan
ninja check check-all

Reviewers: #bitcoin_abc, bytesofman

Reviewed By: #bitcoin_abc, bytesofman

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

Details

Provenance
PiRKAuthored on Nov 3 2023, 15:35
PiRKPushed on Nov 3 2023, 18:31
Reviewer
Restricted Project
Differential Revision
D14733: Replace RecursiveMutex cs_addrLocal with Mutex, and rename it
Parents
rABC882f7450604c: [e.cash] Use camelCase for constant
Branches
Unknown
Tags
Unknown