mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 06:58:57 +01:00
Merge pull request #1738 from laanwj/2012_08_boostthread
implement CreateThread with boost::thread
This commit is contained in:
@@ -46,7 +46,7 @@ void StartShutdown()
|
||||
uiInterface.QueueShutdown();
|
||||
#else
|
||||
// Without UI, Shutdown() can simply be started in a new thread
|
||||
CreateThread(Shutdown, NULL);
|
||||
NewThread(Shutdown, NULL);
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ void Shutdown(void* parg)
|
||||
boost::filesystem::remove(GetPidFile());
|
||||
UnregisterWallet(pwalletMain);
|
||||
delete pwalletMain;
|
||||
CreateThread(ExitTimeout, NULL);
|
||||
NewThread(ExitTimeout, NULL);
|
||||
Sleep(50);
|
||||
printf("Bitcoin exited\n\n");
|
||||
fExit = true;
|
||||
@@ -759,11 +759,11 @@ bool AppInit2()
|
||||
printf("mapWallet.size() = %d\n", pwalletMain->mapWallet.size());
|
||||
printf("mapAddressBook.size() = %d\n", pwalletMain->mapAddressBook.size());
|
||||
|
||||
if (!CreateThread(StartNode, NULL))
|
||||
if (!NewThread(StartNode, NULL))
|
||||
InitError(_("Error: could not start node"));
|
||||
|
||||
if (fServer)
|
||||
CreateThread(ThreadRPCServer, NULL);
|
||||
NewThread(ThreadRPCServer, NULL);
|
||||
|
||||
// ********************************************************* Step 11: finished
|
||||
|
||||
|
||||
Reference in New Issue
Block a user