Fix wallet locking locking #828

pull sipa wants to merge 3 commits into bitcoin:master from sipa:fixwalletlock changing 3 files +32 −20
  1. sipa commented at 4:04 PM on February 11, 2012: member

    Fixes some possible race conditions in ThreadCleanWalletPassphrase().

  2. sipa commented at 5:06 PM on February 11, 2012: member

    Added some extra fixes:

    • Fix sign error in calculation of seconds to sleep
    • Do not mix GetTime() (seconds) and Sleep() (milliseconds)
    • Do not sleep forever if another thread already re-locked (should close #639)
    • Do locking within critical section
  3. TheBlueMatt commented at 7:14 PM on February 11, 2012: contributor

    ACK

  4. Macros for manual critical sections 88bc5f9485
  5. Fix wallet locking locking b0529ffd95
  6. Extra wallet locking fixes
    * Fix sign error in calculation of seconds to sleep
    * Do not mix GetTime() (seconds) and Sleep() (milliseconds)
    * Do not sleep forever if walletlock() is called
    * Do locking within critical section
    aa625ed6ed
  7. sipa referenced this in commit 711d5038f5 on Feb 16, 2012
  8. sipa merged this on Feb 16, 2012
  9. sipa closed this on Feb 16, 2012

  10. sipa cross-referenced this on Feb 19, 2012 from issue Wallet does not relock on Win32 by TheBlueMatt
  11. coblee referenced this in commit 94fd85c68a on Jul 17, 2012
  12. destenson referenced this in commit 9745914c15 on Jun 26, 2016
  13. ptschip referenced this in commit 524ab8d2ef on Dec 27, 2017
  14. bitcoin locked this on Sep 8, 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-05-20 06:56 UTC