diff options
| author | Russell Yanofsky <[email protected]> | 2017-11-08 17:07:40 -0500 |
|---|---|---|
| committer | Russell Yanofsky <[email protected]> | 2018-08-03 07:11:37 -0500 |
| commit | 9c4dc597ddc66acfd58a945a5ab11f833731abba (patch) | |
| tree | 65dd64eda8515ccc9245a1b4bb2211d60c620c07 /src/init.cpp | |
| parent | Make LOCK, LOCK2, TRY_LOCK work with CWaitableCriticalSection (diff) | |
| download | discoin-9c4dc597ddc66acfd58a945a5ab11f833731abba.tar.xz discoin-9c4dc597ddc66acfd58a945a5ab11f833731abba.zip | |
Use LOCK macros for non-recursive locks
Instead of std::unique_lock.
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 21445929d..8ab5790ae 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -566,7 +566,7 @@ static void BlockNotifyGenesisWait(bool, const CBlockIndex *pBlockIndex) { if (pBlockIndex != nullptr) { { - WaitableLock lock_GenesisWait(cs_GenesisWait); + LOCK(cs_GenesisWait); fHaveGenesis = true; } condvar_GenesisWait.notify_all(); @@ -1660,7 +1660,7 @@ bool AppInitMain() // Wait for genesis block to be processed { - WaitableLock lock(cs_GenesisWait); + WAIT_LOCK(cs_GenesisWait, lock); // We previously could hang here if StartShutdown() is called prior to // ThreadImport getting started, so instead we just wait on a timer to // check ShutdownRequested() regularly. |