aboutsummaryrefslogtreecommitdiff
path: root/src/walletdb.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-03-07 14:25:21 -0500
committerGavin Andresen <gavinandresen@gmail.com>2013-04-03 14:04:21 -0400
commit1b43bf0d3ae7b1fcde0c0e20c23c341540f4c8d2 (patch)
treeca5ce1b1cfaa0ac8bf6d6eb069a985fe685135e6 /src/walletdb.cpp
parentc8c2fbe07f1a5475aea3a2680af9130558c7e5c8 (diff)
downloadbitcoin-1b43bf0d3ae7b1fcde0c0e20c23c341540f4c8d2.tar.xz
Rename util.h Sleep --> MilliSleep
Two reasons for this change: 1. Need to always use boost::thread's sleep, even on Windows, so the sleeps can be interrupted (prior code used Windows' built-in Sleep). 2. I always forgot what units the old Sleep took.
Diffstat (limited to 'src/walletdb.cpp')
-rw-r--r--src/walletdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/walletdb.cpp b/src/walletdb.cpp
index fe9bce21e8..96bc05b118 100644
--- a/src/walletdb.cpp
+++ b/src/walletdb.cpp
@@ -500,7 +500,7 @@ void ThreadFlushWalletDB(void* parg)
int64 nLastWalletUpdate = GetTime();
while (!fShutdown)
{
- Sleep(500);
+ MilliSleep(500);
if (nLastSeen != nWalletDBUpdated)
{
@@ -579,7 +579,7 @@ bool BackupWallet(const CWallet& wallet, const string& strDest)
}
}
}
- Sleep(100);
+ MilliSleep(100);
}
return false;
}