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

2
src/main.cpp

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

2
src/walletdb.cpp

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

Loading…
Cancel
Save