-
Notifications
You must be signed in to change notification settings - Fork 259
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge bitcoin/bitcoin#19238: refactor: Make CAddrMan::cs non-recursive
ae98aec refactor: Make CAddrMan::cs non-recursive (Hennadii Stepanov) f5d1c7f Add AssertLockHeld to CAddrMan private functions (Hennadii Stepanov) 5ef1d0b Add thread safety annotations to CAddrMan public functions (Hennadii Stepanov) b138973 refactor: Avoid recursive locking in CAddrMan::Clear (Hennadii Stepanov) f79a664 refactor: Apply consistent pattern for CAddrMan::Check usage (Hennadii Stepanov) 187b7d2 refactor: Avoid recursive locking in CAddrMan::Check (Hennadii Stepanov) f77d9c7 refactor: Fix CAddrMan::Check style (Hennadii Stepanov) 0670397 Make CAddrMan::Check private (Hennadii Stepanov) efc6fac refactor: Avoid recursive locking in CAddrMan::size (Hennadii Stepanov) 2da9554 test: Drop excessive locking in CAddrManTest::SimConnFail (Hennadii Stepanov) Pull request description: This PR replaces `RecursiveMutex CAddrMan::cs` with `Mutex CAddrMan::cs`. All of the related code branches are covered by appropriate lock assertions to insure that the mutex locking policy has not been changed by accident. Related to #19303. Based on #22025, and first three commits belong to it. ACKs for top commit: vasild: ACK ae98aec Tree-SHA512: c3a2d3d955a75befd7e497a802b8c10730e393be9111ca263ad0464d32fae6c7edf9bd173ffb6bc9bb61c4b39073a74eba12979d47f26b0b7b4a861d100942df
- Loading branch information
Showing
4 changed files
with
75 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters