aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2018-02-15 22:02:39 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2018-02-15 22:10:42 +0100
commit58715f6d073f2751a49332ddfc235e080fb8d413 (patch)
tree58256693b9a57dff515449e3f3f342455c9330f5 /contrib
parentd09968f4d00668b990ae19aed024ff3fd27072b8 (diff)
parent1d4cbd26e4220982f7f2f60e447199d6f62ae254 (diff)
downloadbitcoin-58715f6d073f2751a49332ddfc235e080fb8d413.tar.xz
Merge #12422: util: Make LockDirectory thread-safe, consistent, and fix OpenBSD 6.2 build
1d4cbd2 test: Add unit test for LockDirectory (Wladimir J. van der Laan) fc888bf util: Fix multiple use of LockDirectory (Wladimir J. van der Laan) Pull request description: Wrap the `boost::interprocess::file_lock` in a `std::unique_ptr` inside the map that keeps track of per-directory locks. This fixes a build issue with the clang 4.0.0+boost-1.58.0p8 version combo on OpenBSD 6.2, and should have no effect otherwise. Also add a unit test, make the function thread-safe, and fix Linux versus Windows behavior inconsistency. Meant to fix #12413. Tree-SHA512: 1a94c714c932524a51212c46e8951c129337d57b00fd3da5a347c6bcf6a947706cd440f39df935591b2079995136917f71ca7435fb356f6e8a128c509a62ec32
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions