diff options
| author | Gavin Andresen <[email protected]> | 2013-03-07 14:25:21 -0500 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-04-03 14:04:21 -0400 |
| commit | 1b43bf0d3ae7b1fcde0c0e20c23c341540f4c8d2 (patch) | |
| tree | ca5ce1b1cfaa0ac8bf6d6eb069a985fe685135e6 /src/rpcwallet.cpp | |
| parent | Shutdown cleanup prep-work (diff) | |
| download | discoin-1b43bf0d3ae7b1fcde0c0e20c23c341540f4c8d2.tar.xz discoin-1b43bf0d3ae7b1fcde0c0e20c23c341540f4c8d2.zip | |
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/rpcwallet.cpp')
| -rw-r--r-- | src/rpcwallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcwallet.cpp b/src/rpcwallet.cpp index 21eb2fd1a..526a7b5b3 100644 --- a/src/rpcwallet.cpp +++ b/src/rpcwallet.cpp @@ -1289,7 +1289,7 @@ void ThreadCleanWalletPassphrase(void* parg) break; LEAVE_CRITICAL_SECTION(cs_nWalletUnlockTime); - Sleep(nToSleep); + MilliSleep(nToSleep); ENTER_CRITICAL_SECTION(cs_nWalletUnlockTime); } while(1); |