diff options
| author | Jeff Garzik <[email protected]> | 2012-09-04 08:53:05 -0700 |
|---|---|---|
| committer | Jeff Garzik <[email protected]> | 2012-09-04 08:53:05 -0700 |
| commit | 8c7b6c05db007aa8825aa3d366685fcaa9c0be44 (patch) | |
| tree | 4b1090a9e2dd0ff118af6813a874dfa9991225cc /src/init.cpp | |
| parent | Merge pull request #1743 from xanatos/patch-14 (diff) | |
| parent | Rename CreateThread to NewThread (diff) | |
| download | discoin-8c7b6c05db007aa8825aa3d366685fcaa9c0be44.tar.xz discoin-8c7b6c05db007aa8825aa3d366685fcaa9c0be44.zip | |
Merge pull request #1738 from laanwj/2012_08_boostthread
implement CreateThread with boost::thread
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/init.cpp b/src/init.cpp index b085a23d6..0a28312af 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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 |