Merge pull request #1738 from laanwj/2012_08_boostthread

implement CreateThread with boost::thread
This commit is contained in:
Jeff Garzik
2012-09-04 08:53:05 -07:00
9 changed files with 40 additions and 79 deletions

View File

@@ -1303,9 +1303,9 @@ Value walletpassphrase(const Array& params, bool fHelp)
"walletpassphrase <passphrase> <timeout>\n"
"Stores the wallet decryption key in memory for <timeout> seconds.");
CreateThread(ThreadTopUpKeyPool, NULL);
NewThread(ThreadTopUpKeyPool, NULL);
int64* pnSleepTime = new int64(params[1].get_int64());
CreateThread(ThreadCleanWalletPassphrase, pnSleepTime);
NewThread(ThreadCleanWalletPassphrase, pnSleepTime);
return Value::null;
}