Browse Source

rename bitcoin threads

miguelfreitas
Miguel Freitas 9 years ago
parent
commit
f4f018a383
  1. 4
      src/init.cpp
  2. 2
      src/main.cpp
  3. 2
      src/walletdb.cpp

4
src/init.cpp

@ -116,7 +116,7 @@ void Shutdown() @@ -116,7 +116,7 @@ void Shutdown()
TRY_LOCK(cs_Shutdown, lockShutdown);
if (!lockShutdown) return;
RenameThread("bitcoin-shutoff");
RenameThread("twister-shutoff");
nTransactionsUpdated++;
stopSessionTorrent();
StopRPCThreads();
@ -282,7 +282,7 @@ struct CImportingNow @@ -282,7 +282,7 @@ struct CImportingNow
void ThreadImport(std::vector<boost::filesystem::path> vImportFiles)
{
RenameThread("bitcoin-loadblk");
RenameThread("twister-loadblk");
// -reindex
if (fReindex) {

2
src/main.cpp

@ -4040,7 +4040,7 @@ void static BitcoinMiner(CWallet *pwallet) @@ -4040,7 +4040,7 @@ void static BitcoinMiner(CWallet *pwallet)
{
printf("BitcoinMiner started\n");
SetThreadPriority(THREAD_PRIORITY_LOWEST);
RenameThread("bitcoin-miner");
RenameThread("twister-miner");
// Each thread has its own salt and counter
std::vector<unsigned char> salt(4);

2
src/walletdb.cpp

@ -343,7 +343,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet) @@ -343,7 +343,7 @@ DBErrors CWalletDB::LoadWallet(CWallet* pwallet)
void ThreadFlushWalletDB(const string& strFile)
{
// Make this thread recognisable as the wallet flushing thread
RenameThread("bitcoin-wallet");
RenameThread("twister-wallet");
static bool fOneThread;
if (fOneThread)

Loading…
Cancel
Save