diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-11-08 17:07:40 -0500 |
---|---|---|
committer | Russell Yanofsky <russ@yanofsky.org> | 2018-08-03 07:11:37 -0500 |
commit | 9c4dc597ddc66acfd58a945a5ab11f833731abba (patch) | |
tree | 65dd64eda8515ccc9245a1b4bb2211d60c620c07 /src/validation.cpp | |
parent | 1382913e61f5db6ba849b1e261e8aefcd5a1ae68 (diff) | |
download | bitcoin-9c4dc597ddc66acfd58a945a5ab11f833731abba.tar.xz |
Use LOCK macros for non-recursive locks
Instead of std::unique_lock.
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 702a8d7e05..2d6ac4b234 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -2254,7 +2254,7 @@ void static UpdateTip(const CBlockIndex *pindexNew, const CChainParams& chainPar mempool.AddTransactionsUpdated(1); { - WaitableLock lock(g_best_block_mutex); + LOCK(g_best_block_mutex); g_best_block = pindexNew->GetBlockHash(); g_best_block_cv.notify_all(); } |