Fix #6394 without boost dependency. #6608

pull casey wants to merge 1 commits into bitcoin:master from casey:scheduler-lock changing 1 files +6 −5
  1. casey commented at 4:58 PM on August 31, 2015: contributor

    As discussed in #6565, we don't want to introduce a dependency on boost 1.50, since debian wheezy.

    This fixes #6394, but without using boost::reverse_lock.

  2. sipa commented at 4:59 PM on August 31, 2015: member

    Are you sure this re-locks if no exception is thrown?

  3. casey commented at 5:03 PM on August 31, 2015: contributor

    Sorry, I missed a line, fixed.

  4. dcousens commented at 5:13 PM on August 31, 2015: contributor

    ACK, but IMHO I don't see why not to just bump to boost 1.50.

  5. sipa commented at 5:14 PM on August 31, 2015: member

    @theuni @laanwj Comments on Boost 1.50?

  6. theuni commented at 5:31 PM on August 31, 2015: member

    @dcousens This is not about "us" bumping boost, it's about us failing to compile in environments that would otherwise compile fine.

    It's fine to require a newer version if it brings big new features that'd be hard to match without it, but in this case I don't think it's worth it. Concept ACK on the approach here.

  7. Fix #6394 without boost dependency. b403dec16a
  8. pstratem commented at 12:37 AM on September 1, 2015: contributor

    I prefer my solution.

    #6610

  9. laanwj commented at 3:44 PM on September 3, 2015: member

    I like this solution better than #6610. At least it scopes the lock(), instead of depending on an extra call to lock.owns_lock() to determine where the exception came from.

    Although implementing a RAII reverse_lock of our own would have my preference, it's the cleanest solution.

  10. casey commented at 4:58 PM on September 3, 2015: contributor

    Opened #6630, which adds our own implementation of reverse_lock, along with some tests for it.

  11. laanwj commented at 7:47 PM on September 3, 2015: member

    Closing (#6630)

  12. laanwj closed this on Sep 3, 2015

  13. MarcoFalke 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-04-21 21:15 UTC

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