doc: Move wallet lock annotations to header #15530

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1902-walletLocks changing 2 files +33 −34
  1. MarcoFalke commented at 9:03 PM on March 4, 2019: member

    We put the annotations in a central place (the header) as opposed to spreading them over the cpp files, where they easily get outdated.

  2. doc: Move wallet lock annotations to header faebd2ef40
  3. MarcoFalke added the label Refactoring on Mar 4, 2019
  4. MarcoFalke added the label Wallet on Mar 4, 2019
  5. practicalswift commented at 9:12 PM on March 4, 2019: contributor

    utACK faebd2ef40bf6c9209110ad4e229e5a207b9c9da

    Related lock annotation PRs that reviewers might be interested in:

    • #15192: Add missing cs_main locks in ThreadImport(...)/Shutdown(...)/gettxoutsetinfo(...)/InitScriptExecutionCache(). Add missing locking annotations.
    • #15191: validation: Add missing cs_{LastBlockFile,nBlockSequenceId} locks in PruneAndFlush() and UnloadBlockIndex(). Add missing locking annotations.
  6. promag commented at 3:09 PM on March 5, 2019: member

    utACK faebd2ef40bf6c9209110ad4e229e5a207b9c9da.

  7. in src/wallet/wallet.cpp:4127 in faebd2ef40
    4123 | @@ -4125,7 +4124,7 @@ std::shared_ptr<CWallet> CWallet::CreateWalletFromFile(interfaces::Chain& chain,
    4124 |          }
    4125 |      }
    4126 |  
    4127 | -    int prev_version = walletInstance->nWalletVersion;
    4128 | +    int prev_version = walletInstance->GetVersion();
    


    ryanofsky commented at 7:49 PM on March 6, 2019:

    Note: This GetVersion call looks like only change in this PR that actually affects locking behavior (GetVersion() call below just acquires cs_wallet recursively).

  8. ryanofsky commented at 7:50 PM on March 6, 2019: member

    utACK faebd2ef40bf6c9209110ad4e229e5a207b9c9da. Simple cs_wallet cleanup.

  9. Empact commented at 4:28 PM on March 7, 2019: member

    utACK faebd2ef40bf6c9209110ad4e229e5a207b9c9da

  10. MarcoFalke merged this on Mar 7, 2019
  11. MarcoFalke closed this on Mar 7, 2019

  12. MarcoFalke referenced this in commit 726d0668ff on Mar 7, 2019
  13. MarcoFalke deleted the branch on Mar 7, 2019
  14. vijaydasmp referenced this in commit a6a9de6357 on Oct 27, 2021
  15. vijaydasmp referenced this in commit 7f60ec6859 on Oct 29, 2021
  16. vijaydasmp referenced this in commit d1fefb43d3 on Oct 30, 2021
  17. vijaydasmp referenced this in commit b294d4165f on Nov 2, 2021
  18. vijaydasmp referenced this in commit d0c5398007 on Nov 7, 2021
  19. vijaydasmp referenced this in commit c534e99da1 on Nov 9, 2021
  20. vijaydasmp referenced this in commit 14e1c76d56 on Nov 9, 2021
  21. vijaydasmp referenced this in commit 26017122f4 on Nov 11, 2021
  22. vijaydasmp referenced this in commit cfddaed9e2 on Nov 12, 2021
  23. vijaydasmp referenced this in commit e303cf5fa8 on Nov 13, 2021
  24. vijaydasmp referenced this in commit 9836a6dfaa on Nov 14, 2021
  25. vijaydasmp referenced this in commit e7d85d062f on Nov 14, 2021
  26. vijaydasmp referenced this in commit b41e46416f on Nov 16, 2021
  27. vijaydasmp referenced this in commit ade3f5bcbc on Nov 16, 2021
  28. vijaydasmp referenced this in commit 828167abb0 on Nov 17, 2021
  29. DrahtBot locked this on Dec 16, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-17 06:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me