Replace boost::reverse_lock with our own #6630

pull casey wants to merge 1 commits into bitcoin:master from casey:remove-boost-reverse-lock changing 5 files +100 −2
  1. casey commented at 4:57 PM on September 3, 2015: contributor

    See #6608 for discussion.

    This removes boost::reverse_lock so that we don't depend on boost 1.50, and replaces it with our own implementation.

    This implementation is stricter than boost::reverse_lock. Reverse locking an unlocked lock, and re-locking a lock while a reverse_lock is active are both errors.

  2. casey cross-referenced this on Sep 3, 2015 from issue Fix #6394 without boost dependency. by casey
  3. sipa commented at 5:00 PM on September 3, 2015: member

    ACK if Travis is happy.

  4. casey commented at 5:09 PM on September 3, 2015: contributor

    Travis is unhappy; I think I neglected to add the new file to the makefile. Fixing it now.

  5. paveljanik commented at 6:02 PM on September 3, 2015: contributor

    ACK after minor nits.

  6. in src/reverselock.h:None in 2321bb35c3 outdated
      25 | +private:
      26 | +    reverse_lock(reverse_lock const&);
      27 | +    reverse_lock& operator=(reverse_lock const&);
      28 | +
      29 | +    Lock& lock;
      30 | +    //mutex_type* mutex;
    


    laanwj commented at 6:07 PM on September 3, 2015:

    Redundant commented line


    casey commented at 7:13 PM on September 3, 2015:

    Removed

  7. laanwj commented at 6:08 PM on September 3, 2015: member

    utACK, thanks for adding tests!

  8. gavinandresen commented at 6:26 PM on September 3, 2015: contributor

    ACK, works nicely on my OSX machine.

  9. Replace boost::reverse_lock with our own. 86270c8164
  10. laanwj merged this on Sep 3, 2015
  11. laanwj closed this on Sep 3, 2015

  12. laanwj referenced this in commit 195942d58e on Sep 3, 2015
  13. laanwj cross-referenced this on Sep 3, 2015 from issue Fix #6394 without boost >=1.50 dependency by pstratem
  14. dcousens commented at 11:52 PM on September 3, 2015: contributor

    Great work @casey :+1: , utACK

  15. jonasschnelli commented at 7:21 AM on September 4, 2015: contributor

    PostMerge ACK. @casey: Nice work!

  16. 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:55 UTC